mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Introduce the new_reducing constructor on the FacetStringIter struct
This commit is contained in:
parent
01a4052828
commit
64df159057
@ -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<'t>> {
|
||||
FacetStringIter::new(rtxn, index, field_id, documents_ids, true)
|
||||
}
|
||||
|
||||
pub fn new_non_reducing(
|
||||
rtxn: &'t heed::RoTxn,
|
||||
index: &'t Index,
|
||||
|
Loading…
Reference in New Issue
Block a user