Multi-Search
Execute multiple search queries in a single request. Each query targets an index and accepts the same parameters as /v1/search, using indexUid instead of index.
POST
/v1/multi-searchSearch multiple indexes in a single request.
Each query in the queries array accepts all parameters from the search endpoint, using indexUid instead of index. Each query counts as one search. One call carries at most 3 queries on Free, 5 on Starter, 10 on Pro and 25 on Scale; a longer list answers 400.
Auth admin or search keyReturns 200
Request body
{
"queries": [
{
"indexUid": "products",
"q": "macbook",
"limit": 5
},
{
"indexUid": "articles",
"q": "macbook review",
"limit": 3,
"attributesToHighlight": ["title"]
}
]
}Response
{
"results": [
{
"indexUid": "products",
"hits": [ ... ],
"query": "macbook",
"processingTimeMs": 1,
"estimatedTotalHits": 12
},
{
"indexUid": "articles",
"hits": [ ... ],
"query": "macbook review",
"processingTimeMs": 2,
"estimatedTotalHits": 5
}
]
}