132
132
//! bucket_agg: BucketAggregationType::Range(RangeAggregation{
133
133
//! field: "score".to_string(),
134
134
//! ranges: vec![(3f64..7f64).into(), (7f64..20f64).into()],
135
+ //! keyed: None,
135
136
//! }),
136
137
//! sub_aggregation: sub_agg_req_1.clone(),
137
138
//! }),
@@ -765,6 +766,7 @@ mod tests {
765
766
bucket_agg: BucketAggregationType :: Range ( RangeAggregation {
766
767
field: "score" . to_string( ) ,
767
768
ranges: vec![ ( 3f64 ..7f64 ) . into( ) , ( 7f64 ..20f64 ) . into( ) ] ,
769
+ ..Default :: default ( )
768
770
} ) ,
769
771
sub_aggregation: Default :: default ( ) ,
770
772
} ) ,
@@ -775,6 +777,7 @@ mod tests {
775
777
bucket_agg: BucketAggregationType :: Range ( RangeAggregation {
776
778
field: "score_f64" . to_string( ) ,
777
779
ranges: vec![ ( 3f64 ..7f64 ) . into( ) , ( 7f64 ..20f64 ) . into( ) ] ,
780
+ ..Default :: default ( )
778
781
} ) ,
779
782
sub_aggregation: Default :: default ( ) ,
780
783
} ) ,
@@ -785,6 +788,7 @@ mod tests {
785
788
bucket_agg: BucketAggregationType :: Range ( RangeAggregation {
786
789
field: "score_i64" . to_string( ) ,
787
790
ranges: vec![ ( 3f64 ..7f64 ) . into( ) , ( 7f64 ..20f64 ) . into( ) ] ,
791
+ ..Default :: default ( )
788
792
} ) ,
789
793
sub_aggregation: Default :: default ( ) ,
790
794
} ) ,
@@ -941,6 +945,7 @@ mod tests {
941
945
( 7f64 ..19f64 ) . into( ) ,
942
946
( 19f64 ..20f64 ) . into( ) ,
943
947
] ,
948
+ ..Default :: default ( )
944
949
} ) ,
945
950
sub_aggregation: sub_agg_req. clone( ) ,
946
951
} ) ,
@@ -955,6 +960,7 @@ mod tests {
955
960
( 7f64 ..19f64 ) . into( ) ,
956
961
( 19f64 ..20f64 ) . into( ) ,
957
962
] ,
963
+ ..Default :: default ( )
958
964
} ) ,
959
965
sub_aggregation: sub_agg_req. clone( ) ,
960
966
} ) ,
@@ -969,6 +975,7 @@ mod tests {
969
975
( 7f64 ..19f64 ) . into( ) ,
970
976
( 19f64 ..20f64 ) . into( ) ,
971
977
] ,
978
+ ..Default :: default ( )
972
979
} ) ,
973
980
sub_aggregation: sub_agg_req,
974
981
} ) ,
@@ -1416,6 +1423,7 @@ mod tests {
1416
1423
( 40000f64 ..50000f64 ) . into( ) ,
1417
1424
( 50000f64 ..60000f64 ) . into( ) ,
1418
1425
] ,
1426
+ ..Default :: default ( )
1419
1427
} ) ,
1420
1428
sub_aggregation: Default :: default ( ) ,
1421
1429
} ) ,
@@ -1575,6 +1583,7 @@ mod tests {
1575
1583
( 7000f64 ..20000f64 ) . into( ) ,
1576
1584
( 20000f64 ..60000f64 ) . into( ) ,
1577
1585
] ,
1586
+ ..Default :: default ( )
1578
1587
} ) ,
1579
1588
sub_aggregation: sub_agg_req_1. clone( ) ,
1580
1589
} ) ,
0 commit comments