mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-06 01:02:55 +00:00
Compare commits
1 Commits
0.24
...
agg_format
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b345c11786 |
@@ -939,10 +939,10 @@ fn test_aggregation_on_json_object_mixed_types() {
|
|||||||
},
|
},
|
||||||
"termagg": {
|
"termagg": {
|
||||||
"buckets": [
|
"buckets": [
|
||||||
{ "doc_count": 1, "key": 10.0, "min_price": { "value": 10.0 } },
|
{ "doc_count": 1, "key": 10.0, "key_as_string": "10", "min_price": { "value": 10.0 } },
|
||||||
{ "doc_count": 3, "key": "blue", "min_price": { "value": 5.0 } },
|
{ "doc_count": 3, "key": "blue", "min_price": { "value": 5.0 } },
|
||||||
{ "doc_count": 2, "key": "red", "min_price": { "value": 1.0 } },
|
{ "doc_count": 2, "key": "red", "min_price": { "value": 1.0 } },
|
||||||
{ "doc_count": 1, "key": -20.5, "min_price": { "value": -20.5 } },
|
{ "doc_count": 1, "key": -20.5, "key_as_string": "-20.5", "min_price": { "value": -20.5 } },
|
||||||
{ "doc_count": 2, "key": 1.0, "key_as_string": "true", "min_price": { "value": null } },
|
{ "doc_count": 2, "key": 1.0, "key_as_string": "true", "min_price": { "value": null } },
|
||||||
],
|
],
|
||||||
"sum_other_doc_count": 0
|
"sum_other_doc_count": 0
|
||||||
|
|||||||
@@ -599,6 +599,7 @@ impl IntermediateTermBucketResult {
|
|||||||
let val = if key { "true" } else { "false" };
|
let val = if key { "true" } else { "false" };
|
||||||
Some(val.to_string())
|
Some(val.to_string())
|
||||||
}
|
}
|
||||||
|
IntermediateKey::F64(val) => Some(val.to_string()),
|
||||||
_ => None,
|
_ => None,
|
||||||
};
|
};
|
||||||
Ok(BucketEntry {
|
Ok(BucketEntry {
|
||||||
|
|||||||
Reference in New Issue
Block a user