|
@@ -62,27 +62,24 @@ setup:
|
|
|
percentiles:
|
|
|
field: double_field
|
|
|
|
|
|
-
|
|
|
- - match: { hits.total: 4 }
|
|
|
+ - match: { hits.total: 4 }
|
|
|
- length: { hits.hits: 4 }
|
|
|
- - match:
|
|
|
- aggregations.percentiles_int.values:
|
|
|
- "1.0": 2.5
|
|
|
- "5.0": 8.500000000000002
|
|
|
- "25.0": 38.5
|
|
|
- "50.0": 76.0
|
|
|
- "75.0": 113.5
|
|
|
- "95.0": 143.49999999999997
|
|
|
- "99.0": 149.5
|
|
|
- - match:
|
|
|
- aggregations.percentiles_double.values:
|
|
|
- "1.0": 2.5
|
|
|
- "5.0": 8.500000000000002
|
|
|
- "25.0": 38.5
|
|
|
- "50.0": 76.0
|
|
|
- "75.0": 113.5
|
|
|
- "95.0": 143.49999999999997
|
|
|
- "99.0": 149.5
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_int.values.1\.0: 2.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_int.values.25\.0: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.50\.0: 76.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.75\.0: 113.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.95\.0: 143.49999999999997 }
|
|
|
+ - match: { aggregations.percentiles_int.values.99\.0: 149.5 }
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_double.values.1\.0: 2.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.5\.0: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_double.values.25\.0: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.50\.0: 76.0 }
|
|
|
+ - match: { aggregations.percentiles_double.values.75\.0: 113.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.95\.0: 143.49999999999997 }
|
|
|
+ - match: { aggregations.percentiles_double.values.99\.0: 149.5 }
|
|
|
|
|
|
- do:
|
|
|
search:
|
|
@@ -102,24 +99,23 @@ setup:
|
|
|
|
|
|
- match: { hits.total: 4 }
|
|
|
- length: { hits.hits: 4 }
|
|
|
- - match:
|
|
|
- aggregations.percentiles_int.values:
|
|
|
- "1.0": 2.5
|
|
|
- "5.0": 8.500000000000002
|
|
|
- "25.0": 38.5
|
|
|
- "50.0": 76.0
|
|
|
- "75.0": 113.5
|
|
|
- "95.0": 143.49999999999997
|
|
|
- "99.0": 149.5
|
|
|
- - match:
|
|
|
- aggregations.percentiles_double.values:
|
|
|
- "1.0": 2.5
|
|
|
- "5.0": 8.500000000000002
|
|
|
- "25.0": 38.5
|
|
|
- "50.0": 76.0
|
|
|
- "75.0": 113.5
|
|
|
- "95.0": 143.49999999999997
|
|
|
- "99.0": 149.5
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_int.values.1\.0: 2.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_int.values.25\.0: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.50\.0: 76.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.75\.0: 113.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.95\.0: 143.49999999999997 }
|
|
|
+ - match: { aggregations.percentiles_int.values.99\.0: 149.5 }
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_double.values.1\.0: 2.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.5\.0: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_double.values.25\.0: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.50\.0: 76.0 }
|
|
|
+ - match: { aggregations.percentiles_double.values.75\.0: 113.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.95\.0: 143.49999999999997 }
|
|
|
+ - match: { aggregations.percentiles_double.values.99\.0: 149.5 }
|
|
|
+
|
|
|
|
|
|
---
|
|
|
"Only aggs test":
|
|
@@ -138,24 +134,24 @@ setup:
|
|
|
|
|
|
- match: { hits.total: 4 }
|
|
|
- length: { hits.hits: 0 }
|
|
|
- - match:
|
|
|
- aggregations.percentiles_int.values:
|
|
|
- "1.0": 2.5
|
|
|
- "5.0": 8.500000000000002
|
|
|
- "25.0": 38.5
|
|
|
- "50.0": 76.0
|
|
|
- "75.0": 113.5
|
|
|
- "95.0": 143.49999999999997
|
|
|
- "99.0": 149.5
|
|
|
- - match:
|
|
|
- aggregations.percentiles_double.values:
|
|
|
- "1.0": 2.5
|
|
|
- "5.0": 8.500000000000002
|
|
|
- "25.0": 38.5
|
|
|
- "50.0": 76.0
|
|
|
- "75.0": 113.5
|
|
|
- "95.0": 143.49999999999997
|
|
|
- "99.0": 149.5
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_int.values.1\.0: 2.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_int.values.25\.0: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.50\.0: 76.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.75\.0: 113.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.95\.0: 143.49999999999997 }
|
|
|
+ - match: { aggregations.percentiles_int.values.99\.0: 149.5 }
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_double.values.1\.0: 2.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.5\.0: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_double.values.25\.0: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.50\.0: 76.0 }
|
|
|
+ - match: { aggregations.percentiles_double.values.75\.0: 113.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.95\.0: 143.49999999999997 }
|
|
|
+ - match: { aggregations.percentiles_double.values.99\.0: 149.5 }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
---
|
|
|
"Filtered test":
|
|
@@ -179,24 +175,22 @@ setup:
|
|
|
|
|
|
- match: { hits.total: 3 }
|
|
|
- length: { hits.hits: 3 }
|
|
|
- - match:
|
|
|
- aggregations.percentiles_int.values:
|
|
|
- "1.0": 52.0
|
|
|
- "5.0": 56.0
|
|
|
- "25.0": 76.0
|
|
|
- "50.0": 101.0
|
|
|
- "75.0": 126.0
|
|
|
- "95.0": 146.0
|
|
|
- "99.0": 150.0
|
|
|
- - match:
|
|
|
- aggregations.percentiles_double.values:
|
|
|
- "1.0": 52.0
|
|
|
- "5.0": 56.0
|
|
|
- "25.0": 76.0
|
|
|
- "50.0": 101.0
|
|
|
- "75.0": 126.0
|
|
|
- "95.0": 146.0
|
|
|
- "99.0": 150.0
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_int.values.1\.0: 52.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.5\.0: 56.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.25\.0: 76.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.50\.0: 101.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.75\.0: 126.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.95\.0: 146.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.99\.0: 150.0 }
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_double.values.1\.0: 52.0 }
|
|
|
+ - match: { aggregations.percentiles_double.values.5\.0: 56.0 }
|
|
|
+ - match: { aggregations.percentiles_double.values.25\.0: 76.0 }
|
|
|
+ - match: { aggregations.percentiles_double.values.50\.0: 101.0 }
|
|
|
+ - match: { aggregations.percentiles_double.values.75\.0: 126.0 }
|
|
|
+ - match: { aggregations.percentiles_double.values.95\.0: 146.0 }
|
|
|
+ - match: { aggregations.percentiles_double.values.99\.0: 150.0 }
|
|
|
|
|
|
---
|
|
|
"Missing field with missing param":
|
|
@@ -212,15 +206,14 @@ setup:
|
|
|
|
|
|
- match: { hits.total: 4 }
|
|
|
- length: { hits.hits: 4 }
|
|
|
- - match:
|
|
|
- aggregations.percentiles_missing.values:
|
|
|
- "1.0": 1.0
|
|
|
- "5.0": 1.0
|
|
|
- "25.0": 1.0
|
|
|
- "50.0": 1.0
|
|
|
- "75.0": 1.0
|
|
|
- "95.0": 1.0
|
|
|
- "99.0": 1.0
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_missing.values.1\.0: 1.0 }
|
|
|
+ - match: { aggregations.percentiles_missing.values.5\.0: 1.0 }
|
|
|
+ - match: { aggregations.percentiles_missing.values.25\.0: 1.0 }
|
|
|
+ - match: { aggregations.percentiles_missing.values.50\.0: 1.0 }
|
|
|
+ - match: { aggregations.percentiles_missing.values.75\.0: 1.0 }
|
|
|
+ - match: { aggregations.percentiles_missing.values.95\.0: 1.0 }
|
|
|
+ - match: { aggregations.percentiles_missing.values.99\.0: 1.0 }
|
|
|
|
|
|
---
|
|
|
"Missing field without missing param":
|
|
@@ -253,15 +246,15 @@ setup:
|
|
|
- match: { hits.total: 4 }
|
|
|
- length: { hits.hits: 4 }
|
|
|
- match: { aggregations.percentiles_int.meta.foo: "bar" }
|
|
|
- - match:
|
|
|
- aggregations.percentiles_int.values:
|
|
|
- "1.0": 2.5
|
|
|
- "5.0": 8.500000000000002
|
|
|
- "25.0": 38.5
|
|
|
- "50.0": 76.0
|
|
|
- "75.0": 113.5
|
|
|
- "95.0": 143.49999999999997
|
|
|
- "99.0": 149.5
|
|
|
+
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_int.values.1\.0: 2.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_int.values.25\.0: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.50\.0: 76.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.75\.0: 113.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.95\.0: 143.49999999999997 }
|
|
|
+ - match: { aggregations.percentiles_int.values.99\.0: 149.5 }
|
|
|
|
|
|
---
|
|
|
"Invalid params test":
|
|
@@ -335,16 +328,14 @@ setup:
|
|
|
|
|
|
- match: { hits.total: 4 }
|
|
|
- length: { hits.hits: 4 }
|
|
|
- - match:
|
|
|
- aggregations.percentiles_int.values:
|
|
|
- 5.0: 8.500000000000002
|
|
|
- 25.0: 38.5
|
|
|
- 50.0: 76.0
|
|
|
- - match:
|
|
|
- aggregations.percentiles_double.values:
|
|
|
- 5.0: 8.500000000000002
|
|
|
- 25.0: 38.5
|
|
|
- 50.0: 76.0
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_int.values.5\.0: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_int.values.25\.0: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.50\.0: 76.0 }
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_double.values.5\.0: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_double.values.25\.0: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_double.values.50\.0: 76.0 }
|
|
|
|
|
|
---
|
|
|
"Non-keyed test":
|
|
@@ -362,14 +353,13 @@ setup:
|
|
|
|
|
|
- match: { hits.total: 4 }
|
|
|
- length: { hits.hits: 4 }
|
|
|
- - match:
|
|
|
- aggregations.percentiles_int.values:
|
|
|
- - key: 5.0
|
|
|
- value: 8.500000000000002
|
|
|
- - key: 25.0
|
|
|
- value: 38.5
|
|
|
- - key: 50.0
|
|
|
- value: 76.0
|
|
|
+
|
|
|
+ - match: { aggregations.percentiles_int.values.0.key: 5.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.0.value: 8.500000000000002 }
|
|
|
+ - match: { aggregations.percentiles_int.values.1.key: 25.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.1.value: 38.5 }
|
|
|
+ - match: { aggregations.percentiles_int.values.2.key: 50.0 }
|
|
|
+ - match: { aggregations.percentiles_int.values.2.value: 76.0 }
|
|
|
|
|
|
|
|
|
|