v1
latestOpenAPI 3.0.02026-07-22122745.8 KBSearch
Search query (POST)
Search through indexed items of a search engine. Identical to the GET variant but accepts parameters as a JSON body, which is useful when query strings would be too long or when sending complex nested structures (filters, facets, sort).
post/6/{hashid}/_search
Path parameters
hashidstring required
Unique id of a search engine.
Request body
Response
OK
Example response
{
"custom_results_id": 5,
"facets": [
{
"brand": {
"terms": {
"items": [
{
"name": "Adidas",
"count": 5
},
{
"name": "Nike",
"count": 3
}
],
"selected": []
}
}
}
],
"query_name": "fuzzy",
"results": [
{
"description": "The best product description ever",
"dfid": "1234567890abcdef1234567890abcdef@product@1234567890abcdef",
"id": "my_id",
"image_url": "http://www.example.com/images/alt_product_image.jpg",
"title": "My item",
"url": "http://www.example.com/alt_product_description.htm"
}
],
"total": 1
}