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

@ -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);