Fix bugs in asc/desc criterion and facet indexing

This commit is contained in:
Loïc Lecrenier 2022-09-01 12:51:54 +02:00 committed by Loïc Lecrenier
parent a7201ece04
commit afdf87f6f7
2 changed files with 3 additions and 2 deletions

View File

@ -197,9 +197,10 @@ fn facet_ordered<'t>(
field_id, field_id,
candidates.clone(), candidates.clone(),
)?; )?;
let string_iter = make_iter( let string_iter = make_iter(
rtxn, rtxn,
index.facet_id_f64_docids.remap_key_type::<FacetKeyCodec<MyByteSlice>>(), index.facet_id_string_docids.remap_key_type::<FacetKeyCodec<MyByteSlice>>(),
field_id, field_id,
candidates, candidates,
)?; )?;

View File

@ -142,7 +142,7 @@ pub(crate) fn data_from_obkv_documents(
indexer, indexer,
lmdb_writer_sx.clone(), lmdb_writer_sx.clone(),
extract_facet_string_docids, extract_facet_string_docids,
merge_roaring_bitmaps, // TODO: check (cbo?) merge_cbo_roaring_bitmaps, // TODO: check (cbo?)
TypedChunk::FieldIdFacetStringDocids, TypedChunk::FieldIdFacetStringDocids,
"field-id-facet-string-docids", "field-id-facet-string-docids",
); );