Introduce the new_reducing constructor on the FacetStringIter struct

This commit is contained in:
Kerollmops 2021-08-17 10:31:20 +02:00
parent 01a4052828
commit 64df159057
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -293,6 +293,15 @@ pub struct FacetStringIter<'t> {
} }
impl<'t> 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<'t>> {
FacetStringIter::new(rtxn, index, field_id, documents_ids, true)
}
pub fn new_non_reducing( pub fn new_non_reducing(
rtxn: &'t heed::RoTxn, rtxn: &'t heed::RoTxn,
index: &'t Index, index: &'t Index,