switch to Aggregation without serde_untagged (#2003)

* refactor result handling

* remove Internal stuff

* merge different accessors

* switch to Aggregation without serde_untagged

* fix doctests
This commit is contained in:
PSeitz
2023-04-25 14:54:51 +08:00
committed by GitHub
parent 7b31100208
commit 2e369db936
18 changed files with 839 additions and 1190 deletions

View File

@@ -7,12 +7,8 @@
// ---
use serde_json::{Deserializer, Value};
use tantivy::aggregation::agg_req::{
Aggregation, Aggregations, BucketAggregation, BucketAggregationType, MetricAggregation,
};
use tantivy::aggregation::agg_req::Aggregations;
use tantivy::aggregation::agg_result::AggregationResults;
use tantivy::aggregation::bucket::{RangeAggregation, RangeAggregationRange};
use tantivy::aggregation::metric::AverageAggregation;
use tantivy::aggregation::AggregationCollector;
use tantivy::query::AllQuery;
use tantivy::schema::{self, IndexRecordOption, Schema, TextFieldIndexing, FAST};