mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
FieldIdsMap no longer useful thanks to #4631
This commit is contained in:
parent
500ddc76b5
commit
bc5663e673
@ -840,9 +840,9 @@ impl<'a, 'i> Transform<'a, 'i> {
|
||||
original_obkv_buffer: &mut Vec<u8>,
|
||||
flattened_obkv_buffer: &mut Vec<u8>,
|
||||
) -> Result<()> {
|
||||
/// TODO do a XOR of the faceted fields
|
||||
/// TODO if reindex_searchable returns true store all searchables else none
|
||||
/// TODO no longer useful after Tamo's PR
|
||||
// TODO do a XOR of the faceted fields
|
||||
// TODO if reindex_searchable returns true store all searchables else none
|
||||
// TODO no longer useful after Tamo's PR
|
||||
let mut old_fields_ids_map = settings_diff.old.fields_ids_map.clone();
|
||||
let mut new_fields_ids_map = settings_diff.new.fields_ids_map.clone();
|
||||
let mut obkv_writer = KvWriter::<_, FieldId>::memory();
|
||||
|
@ -1099,13 +1099,7 @@ impl InnerIndexSettingsDiff {
|
||||
}
|
||||
|
||||
pub fn reindex_searchable(&self) -> bool {
|
||||
// TODO no longer useful after Tamo's PR
|
||||
self.old
|
||||
.fields_ids_map
|
||||
.iter()
|
||||
.zip(self.new.fields_ids_map.iter())
|
||||
.any(|(old, new)| old != new)
|
||||
|| self.old.stop_words.as_ref().map(|set| set.as_fst().as_bytes())
|
||||
self.old.stop_words.as_ref().map(|set| set.as_fst().as_bytes())
|
||||
!= self.new.stop_words.as_ref().map(|set| set.as_fst().as_bytes())
|
||||
|| self.old.allowed_separators != self.new.allowed_separators
|
||||
|| self.old.dictionary != self.new.dictionary
|
||||
|
Loading…
Reference in New Issue
Block a user