79
79
- match : { _shards.skipped: 0 }
80
80
- match : { _shards.failed: 0 }
81
81
- match : { hits.total: 2 }
82
+ - length : { hits.hits: 0 }
83
+ - match : { hits.max_score: null }
82
84
83
85
# this is the case where we have an empty body and don't skip anything since it's match_all
84
86
- do :
@@ -102,6 +104,8 @@ setup:
102
104
- match : { _shards.skipped : 1}
103
105
- match : { _shards.failed: 0 }
104
106
- match : { hits.total: 2 }
107
+ - length : { hits.hits: 0 }
108
+ - match : { hits.max_score: null }
105
109
106
110
# this case we skip all except of one since we need a real result
107
111
- do :
@@ -115,6 +119,8 @@ setup:
115
119
- match : { _shards.skipped : 2}
116
120
- match : { _shards.failed: 0 }
117
121
- match : { hits.total: 0 }
122
+ - length : { hits.hits: 0 }
123
+ - match : { hits.max_score: null }
118
124
119
125
- do :
120
126
search :
@@ -126,9 +132,10 @@ setup:
126
132
- match : { _shards.skipped : 0 }
127
133
- match : { _shards.failed: 0 }
128
134
- match : { hits.total: 2 }
135
+ - length : { hits.hits: 0 }
136
+ - match : { hits.max_score: null }
129
137
- match : { aggregations.some_agg.doc_count: 3 }
130
138
131
-
132
139
- do :
133
140
search :
134
141
pre_filter_shard_size : 1
@@ -139,6 +146,8 @@ setup:
139
146
- match : { _shards.skipped : 0 }
140
147
- match : { _shards.failed: 0 }
141
148
- match : { hits.total: 2 }
149
+ - length : { hits.hits: 0 }
150
+ - match : { hits.max_score: null }
142
151
- length : { aggregations.idx_terms.buckets: 3 }
143
152
144
153
- do :
@@ -151,6 +160,8 @@ setup:
151
160
- match : { _shards.skipped : 1 }
152
161
- match : { _shards.failed: 0 }
153
162
- match : { hits.total: 2 }
163
+ - length : { hits.hits: 0 }
164
+ - match : { hits.max_score: null }
154
165
- length : { aggregations.idx_terms.buckets: 2 }
155
166
156
167
0 commit comments