set max bucket size as parameter

This commit is contained in:
Pascal Seitz
2022-05-12 21:04:25 +08:00
parent 11ac451250
commit 44ea7313ca
10 changed files with 141 additions and 74 deletions

View File

@@ -117,7 +117,7 @@ fn main() -> tantivy::Result<()> {
.into_iter()
.collect();
let collector = AggregationCollector::from_aggs(agg_req_1);
let collector = AggregationCollector::from_aggs(agg_req_1, None);
let searcher = reader.searcher();
let agg_res: AggregationResults = searcher.search(&term_query, &collector).unwrap();