From afdf87f6f75cb5977c2b1ecec91406951e3d3256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lecrenier?= Date: Thu, 1 Sep 2022 12:51:54 +0200 Subject: [PATCH] Fix bugs in asc/desc criterion and facet indexing --- milli/src/search/criteria/asc_desc.rs | 3 ++- milli/src/update/index_documents/extract/mod.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/milli/src/search/criteria/asc_desc.rs b/milli/src/search/criteria/asc_desc.rs index a5ea9b058..23dd860e1 100644 --- a/milli/src/search/criteria/asc_desc.rs +++ b/milli/src/search/criteria/asc_desc.rs @@ -197,9 +197,10 @@ fn facet_ordered<'t>( field_id, candidates.clone(), )?; + let string_iter = make_iter( rtxn, - index.facet_id_f64_docids.remap_key_type::>(), + index.facet_id_string_docids.remap_key_type::>(), field_id, candidates, )?; diff --git a/milli/src/update/index_documents/extract/mod.rs b/milli/src/update/index_documents/extract/mod.rs index 1e414458f..208dfc74d 100644 --- a/milli/src/update/index_documents/extract/mod.rs +++ b/milli/src/update/index_documents/extract/mod.rs @@ -142,7 +142,7 @@ pub(crate) fn data_from_obkv_documents( indexer, lmdb_writer_sx.clone(), extract_facet_string_docids, - merge_roaring_bitmaps, // TODO: check (cbo?) + merge_cbo_roaring_bitmaps, // TODO: check (cbo?) TypedChunk::FieldIdFacetStringDocids, "field-id-facet-string-docids", );