mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-19 01:18:31 +08:00
refactor(http): use reset_sortable_fields
This commit is contained in:
parent
33514b28be
commit
efa69875d9
@ -1,4 +1,4 @@
|
|||||||
use std::collections::{BTreeMap, BTreeSet, HashSet};
|
use std::collections::{BTreeMap, BTreeSet};
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
use std::num::NonZeroUsize;
|
use std::num::NonZeroUsize;
|
||||||
@ -265,10 +265,7 @@ impl Index {
|
|||||||
Setting::Set(ref fields) => {
|
Setting::Set(ref fields) => {
|
||||||
builder.set_sortable_fields(fields.iter().cloned().collect())
|
builder.set_sortable_fields(fields.iter().cloned().collect())
|
||||||
}
|
}
|
||||||
Setting::Reset => {
|
Setting::Reset => builder.reset_sortable_fields(),
|
||||||
// TODO we must use the reset_sortable_fields in a futur PR.
|
|
||||||
builder.set_sortable_fields(HashSet::new())
|
|
||||||
}
|
|
||||||
Setting::NotSet => (),
|
Setting::NotSet => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user