Note: Oracle recommends that you modify the default search interface All
to meet your requirements, rather than create new search interfaces. Thus, the only search interface you ever need to create is All
, and only if for some reason it has been deleted. You may also want to create the search interface TypeAhead
if for some reason it has been deleted.
In JSON format or ZIP format, use a POST endpoint to create the configuration of a search interface.
For example, the following endpoint imports configuration of a search interface named All
:
POST /gsadmin/v1/cloud/searchInterfaces/All
The endpoint must include JSON configuration of the search interface All as its content; for example:
{ "ecr:type": "search-interface", "crossFieldMatch": "always", "fields": [ { "attribute": "product.id" }, { "attribute": "product.sku" }, { "attribute": "product.code" }, { "attribute": "product.brand.name" }, { "attribute": "product.category" }, { "attribute": "product.name" }, { { "attribute": "ecr:crossField" }, "attribute": "product.long_desc" } ] }
Note: The JSON object that configures a search interface does not specify the name of the search interface. Instead, the name of the search interface is assumed to be the same as the name of the subfolder (for example, All
) where the search interface is created.