mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 21:20:24 +01: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…
x
Reference in New Issue
Block a user