If a folder object for search interfaces does not exist, you must re-create it. Do not attempt to create more than one searchInterfaces
folder.
The searchInterfaces
folder must contain a search interface named All
; if All
is missing, shoppers cannot search the catalog. It must also contain a search interface named TypeAhead
if typeahead functionality is to be enabled for shoppers’ search strings.
Use the following endpoint to create the searchInterfaces
folder:
POST /gsadmin/v1/cloud/searchInterfaces
The POST endpoint must import the following JSON configuration:
{
"ecr:type": "search-interface-folder"
}
Note: For most purposes, it is convenient to create the search interface All when you create the searchInterfaces
folder. In this case, the JSON configuration that you provide as input to the POST request includes the configuration of All
as well as the configuration of the searchInterfaces
folder.