Force exhaustive search when faceting is requested

This commit is contained in:
Louis Dureuil
2023-02-02 17:03:20 +01:00
parent 39b62b7158
commit 67b8678afb
2 changed files with 6 additions and 3 deletions

View File

@@ -112,7 +112,7 @@ impl<'a> Search<'a> {
self
}
/// Force the search to exhastivelly compute the number of candidates,
/// Force the search to exhaustively compute the number of candidates,
/// this will increase the search time but allows finite pagination.
pub fn exhaustive_number_hits(&mut self, exhaustive_number_hits: bool) -> &mut Search<'a> {
self.exhaustive_number_hits = exhaustive_number_hits;