From e9a3029c300fd87c7969b653a12c3c6020d17566 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 7 Jun 2023 10:52:35 +0200 Subject: [PATCH] Use the right field id to write the string facet values FST --- milli/src/update/facet/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/update/facet/mod.rs b/milli/src/update/facet/mod.rs index 0752f7c37..0e6fd494c 100644 --- a/milli/src/update/facet/mod.rs +++ b/milli/src/update/facet/mod.rs @@ -169,7 +169,7 @@ impl<'i> FacetsUpdate<'i> { current_fst = match current_fst.take() { Some((fid, fst_builder)) if fid != field_id => { 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_builder)) => Some((field_id, fst_builder)),