Note: Only two interfaces are supported: All and TypeAhead. Thus, you will need to create a search interface only if, for whatever reason, one of these search interfaces is missing. Do not attempt to create or use search interfaces other than All and TypeAhead.

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.


Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices