mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
use distinct on search
This commit is contained in:
parent
72450c765d
commit
a2f0f95337
6 changed files with 44 additions and 9 deletions
|
@ -125,6 +125,10 @@ impl Schema {
|
|||
Ok((id, pos.into()))
|
||||
}
|
||||
|
||||
pub fn clear_ranked(&mut self) {
|
||||
self.ranked.clear();
|
||||
}
|
||||
|
||||
pub fn remove_ranked(&mut self, name: &str) {
|
||||
if let Some(id) = self.fields_map.id(name) {
|
||||
self.ranked.remove(&id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue