You can configure your refinements list to begin with any group of facets (dimensions) in any order. Your configuration applies to the navigation section of the search response (/gsadmin/v1/search response).

To specify a display order for selected facets in your application, follow these steps:

  1. Use one of the following endpoints to export configuration of the Guided Navigation catalog, in JSON format or in ZIP format:

    GET /gsadmin/v1/app_name/facets/default (JSON format) 

    or

    GET /gsadmin/v1/app_name/facets/default .zip (ZIP format) 

    The default configuration of the Guided Navigation content item is returned:

    { 
      "ecr:type": "content-item", 
      "contentItem": {
        "@type": "GuidedNavigation", 
        "@name": "Global Facet Order", 
        "showAll": true,
    	  	"navigation": [] 
      }, 
      "triggers": [
        {
          "exactLocation": false
        }
      ], 
      "priority": 10 
    }

    For information about the attributes in this configuration, see #s0102attributesoftheguidednavigationc01.

  2. In the navigation attribute, include a RefinementMenu element for each facet that you want to include among the explicitly ordered facets. Arrange the RefinementMenu elements in the order in which you want the corresponding facets to appear in the refinements list.

    For example, if you want the four following facets to appear in the order Category, Price Range, Brand, and Color, modify the navigation[] attribute as follows:

     "navigation": [
       { 
         "@type": "RefinementMenu", 
         "dimensionName ": "product.category" 
       }, 
    			  
    			 { 
          "@type" : "RefinementMenu", 
          "dimensionName": "product.priceRange" 
        }, 
        { 
          "@type": "RefinementMenu", 
          "dimensionName": "product.brand" 
        }, 
    			 { 
          "@type": "RefinementMenu", 
          "dimensionName": "product.color" 
        } 
      ]
  3. Use one of the following endpoints to import configuration of the Guided Navigation content item, in JSON format or in ZIP format:

     PUT /gsadmin/v1/app_name/facets/default (JSON format)

    or

     PUT /gsadmin/v1/app_name/facets/default .zip (ZIP format)
  4. View the changes in your Preview environment to verify that they are correct.

  5. Publish your catalog to promote your changes to your production environment.


Copyright © Legal Notices