From 916dd3b7c5435c3b6408136e8f1399a2d63ba7ee Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Tue, 26 Jan 2021 14:12:16 +0100 Subject: [PATCH] Use the faceted_fields_ids method to fetch the ids --- src/search/facet/facet_condition.rs | 2 +- src/search/facet/facet_distribution.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search/facet/facet_condition.rs b/src/search/facet/facet_condition.rs index 762134759..19542a3ab 100644 --- a/src/search/facet/facet_condition.rs +++ b/src/search/facet/facet_condition.rs @@ -176,7 +176,7 @@ impl FacetCondition { } let fields_ids_map = index.fields_ids_map(rtxn)?; - let faceted_fields = index.faceted_fields(rtxn)?; + let faceted_fields = index.faceted_fields_ids(rtxn)?; let mut ands = None; for either in array { diff --git a/src/search/facet/facet_distribution.rs b/src/search/facet/facet_distribution.rs index 55b529308..06c84bf17 100644 --- a/src/search/facet/facet_distribution.rs +++ b/src/search/facet/facet_distribution.rs @@ -173,7 +173,7 @@ impl<'a> FacetDistribution<'a> { pub fn execute(&self) -> heed::Result>> { let fields_ids_map = self.index.fields_ids_map(self.rtxn)?; - let faceted_fields = self.index.faceted_fields(self.rtxn)?; + let faceted_fields = self.index.faceted_fields_ids(self.rtxn)?; let fields_ids: Vec<_> = match &self.facets { Some(names) => { names.iter().filter_map(|n| {