add aggregation support for date type (#1693)

* add aggregation support for date type
fixes #1332

* serialize key_as_string as rfc3339 in date histogram
* update docs
* enable date for range aggregation
This commit is contained in:
PSeitz
2022-11-28 01:12:08 +01:00
committed by GitHub
parent 600548fd26
commit ee1f2c1f28
12 changed files with 339 additions and 77 deletions

View File

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