Skip to content

Commit bb92760

Browse files
Update reference/api/search.mdx
Co-authored-by: Mubelotix <[email protected]>
1 parent d294682 commit bb92760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/api/search.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,9 +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-
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.
1144+
Using `rankingScoreThreshold` with `page` and `hitsPerPage` forces Meilisearch to evaluate the ranking score of all matching documents to return an accurate `totalHits`. This may negatively impact search performance.
11451145

1146-
Queries using `page` and `hitsPerPage` are unnaffected by this issue and `totalHits` should always display the correct total number of search results.
1146+
Queries with `limit` and `offset` avoid this overhead when using `rankingScoreThreshold`.
11471147
</Warning>
11481148

11491149
#### Example

0 commit comments

Comments
 (0)