mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Introduce the new_reducing constructor on the FacetStringIter struct
This commit is contained in:
parent
01a4052828
commit
64df159057
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue