Use the right field id to write the string facet values FST

This commit is contained in:
Kerollmops 2023-06-07 10:52:35 +02:00 committed by Louis Dureuil
parent ed0ff47551
commit e9a3029c30
No known key found for this signature in database

View File

@ -169,7 +169,7 @@ impl<'i> FacetsUpdate<'i> {
current_fst = match current_fst.take() { current_fst = match current_fst.take() {
Some((fid, fst_builder)) if fid != field_id => { Some((fid, fst_builder)) if fid != field_id => {
let fst = fst_builder.into_set(); let fst = fst_builder.into_set();
text_fsts.push((field_id, fst)); text_fsts.push((fid, fst));
Some((field_id, fst::SetBuilder::memory())) Some((field_id, fst::SetBuilder::memory()))
} }
Some((field_id, fst_builder)) => Some((field_id, fst_builder)), Some((field_id, fst_builder)) => Some((field_id, fst_builder)),