search

POST /search-api/v1/search/arranged/{tenant}

Changed on

Request

  • Base URL
    http://search-service
  • URL
    http://search-service/search-api/v1/search/arranged/{tenant}
  • Auth
    HTTP basic

Path parameters

tenantstring required

tenant name

Request body */*

filtersobject
includeMainResultboolean
limitinteger

The amount of products to return in the result

offsetinteger

The amount of products to omit from the whole result to select the returned results.

qstring

the user query

sortstring

Full sorting parameter value. This is the name of the sorting and optionally a dash as prefix, thats means the sorting should be descending. Several sorting criterion can be defined by separating the values using comma.

withFacetsboolean

flag to specify if facets should be returned with the requested response. Should be set to false in case only the next batch of hits is requested (e.g. for endless scrolling).

Example request

{
  "q": "blue shirt",
  "sort": "sort=price,-name (price asc and name descending)"
}

Response

default response

inputURIstring URI

The URI that was used to get that result view. May be used to generate breadcrumbs.

metaobject
tookInMillisinteger

amount of time the internal search needed to compute that result

Example response

{
  "slices": [
    {
      "hits": [
        {
          "document": {
            "attributes": [
              {
                "name": "color",
                "value": "red",
                "code": "ff0000"
              }
            ],
            "categories": [
              [
                {
                  "id": "7001",
                  "name": "Electronics"
                },
                {
                  "id": "7011",
                  "name": "Notebooks"
                }
              ],
              [
                {
                  "id": "9000",
                  "name": "Sale"
                }
              ]
            ]
          }
        }
      ]
    }
  ]
}

Changes

    • info

      added subschema #13 to the ////// response property anyOf list for the response status

    • info

      added subschema #7 subschema #8 subschema #9 subschema #10 subschema #11 subschema #12 to the ////// response property anyOf list for the response status