Search for documents
Changed onRuns a search request for a certain tenant. The tenant should exist at the service and linked to a certain index in the backend. Different tenants may use the same index.
Request
- Base URLhttp://search-service
- URLhttp://search-service/search-api/v1/search/{tenant}
- AuthHTTP basic
Path parameters
tenant name
Query parameters
the query that describes the wished result
{
"q": "blue shirt",
"sort": "sort=price,-name (price asc and name descending)"
}Any other parameter is considered as filter. Each one is validated according to the actual data and configuration. Each filter can have multiple values, separated by comma. Commas inside the values have to be double-URL encoded. Depending on the configured filter type these values are used differently (see examples).
Response
successful found results
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 #13to the//////response propertyanyOflist for the response status - info
added
subschema #13to the//////response propertyanyOflist for the response status
- info
- info
added
subschema #7subschema #8subschema #9subschema #10subschema #11subschema #12to the//////response propertyanyOflist for the response status - info
added
subschema #7subschema #8subschema #9subschema #10subschema #11subschema #12to the//////response propertyanyOflist for the response status
- info