use distinct on search

This commit is contained in:
qdequele
2020-03-02 14:34:29 +01:00
parent 72450c765d
commit a2f0f95337
6 changed files with 44 additions and 9 deletions

View File

@ -75,7 +75,7 @@ impl<'c, 'f, 'd> QueryBuilder<'c, 'f, 'd> {
self.timeout = Some(timeout)
}
pub fn with_distinct<F, K>(&mut self, function: F, size: usize)
pub fn with_distinct<F>(&mut self, size: usize, function: F)
where
F: Fn(DocumentId) -> Option<u64> + 'd,
{