GET /indexes/:indexUid/search
GET /indexes/:indexUid/similar
The GET routes have an additionalrankingScoreThreshold
url parameter. It is optional and defaults to null
(no threshold). If provided, it must be a number between 0.0 and 1.0 inclusive.
POST /indexes/:indexUid/search
POST /indexes/:indexUid/similar
The POST routes have an additional rankingScoreThreshold
body parameter. It is optional and defaults to null
(no threshold). If provided, it must be a number between 0.0 and 1.0 inclusive.
POST /multi-search
The parameter can be added individually to each query in a multi-search request.
In both cases, when a rankingScoreThreshold
is provided, the results of the search/similar request are modified in the following way:
_rankingScore
is under the rankingScoreThreshold
is returnedestimatedTotalHits
, totalHits
and the facet distribution.request without score threshold:
POST /indexes/movies/search
{
"q": "Badman dark returns 1",
"showRankingScore": true,
"limit": 5
}
results: