mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-11 22:14:32 +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> {
|
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user