Add some code comments

This commit is contained in:
ManyTheFish
2022-10-17 14:41:57 +02:00
parent cf203b7fde
commit 6f55e7844c
2 changed files with 9 additions and 2 deletions

View File

@ -109,6 +109,8 @@ impl<'a> Search<'a> {
self
}
/// Force the search to exhastivelly 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;
self