Skip to content

Commit 19d83ec

Browse files
update rankingScoreThreshold warning
1 parent fef17cf commit 19d83ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reference/api/search.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,9 @@ Excludes results below the specified ranking score.
11411141
Excluded results do not count towards `estimatedTotalHits`, `totalHits`, and facet distribution.
11421142

11431143
<Warning>
1144-
For performance reasons, if the number of documents above `rankingScoreThreshold` is higher than `limit`, Meilisearch does not evaluate the ranking score of the remaining documents. Results ranking below the threshold are not immediately removed from the set of candidates. In this case, Meilisearch may overestimate the count of `estimatedTotalHits`, `totalHits` and facet distribution.
1144+
When using `rankingScoreThreshold`, queries paginating results with `limit` and `offset` may exaggerate the count of `estimatedTotalHits`. For performance reasons, if the number of documents above `rankingScoreThreshold` is higher than `limit`, Meilisearch does not evaluate the ranking score of the remaining documents. Results ranking below the threshold are not immediately removed from the set of candidates.
1145+
1146+
Queries using `page` and `hitsPerPage` are unnaffected by this issue and `totalHits` should always display the correct total number of search results.
11451147
</Warning>
11461148

11471149
#### Example

0 commit comments

Comments
 (0)