Refine the facet distribution to use both databases

This commit is contained in:
Clément Renault
2021-05-03 15:17:24 +02:00
committed by Kerollmops
parent 79efded841
commit 02c655ff1a
4 changed files with 106 additions and 114 deletions

View File

@ -50,7 +50,6 @@ impl<'t> AscDesc<'t> {
Self::new(index, rtxn, parent, field_name, false)
}
fn new(
index: &'t Index,
rtxn: &'t heed::RoTxn,
@ -59,7 +58,6 @@ impl<'t> AscDesc<'t> {
ascending: bool,
) -> anyhow::Result<Self> {
let fields_ids_map = index.fields_ids_map(rtxn)?;
let faceted_fields = index.faceted_fields(rtxn)?;
let field_id = fields_ids_map
.id(&field_name)
.with_context(|| format!("field {:?} isn't registered", field_name))?;