From 64df15905771541700d5651440b078afc063b2bf Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Tue, 17 Aug 2021 10:31:20 +0200 Subject: [PATCH] Introduce the new_reducing constructor on the FacetStringIter struct --- milli/src/search/facet/facet_string.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/milli/src/search/facet/facet_string.rs b/milli/src/search/facet/facet_string.rs index 1a9bf6d91..5ad45fdff 100644 --- a/milli/src/search/facet/facet_string.rs +++ b/milli/src/search/facet/facet_string.rs @@ -293,6 +293,15 @@ pub struct FacetStringIter<'t> { } impl<'t> FacetStringIter<'t> { + pub fn new_reducing( + rtxn: &'t heed::RoTxn, + index: &'t Index, + field_id: FieldId, + documents_ids: RoaringBitmap, + ) -> heed::Result> { + FacetStringIter::new(rtxn, index, field_id, documents_ids, true) + } + pub fn new_non_reducing( rtxn: &'t heed::RoTxn, index: &'t Index,