37
37
---
38
38
" basic " :
39
39
- skip :
40
- version : " - 7.9 .99"
41
- reason : " point in time is introduced in 7.10 "
40
+ version : " - 7.12 .99"
41
+ reason : " point in time is introduced in server in 7.13 "
42
42
- do :
43
43
open_point_in_time :
44
44
index : test
47
47
48
48
- do :
49
49
search :
50
- rest_total_hits_as_int : true
51
50
body :
52
51
size : 1
53
52
query :
58
57
id : " $point_in_time_id"
59
58
keep_alive : 1m
60
59
61
- - match : {hits.total: 3 }
60
+ - match : {hits.total.value : 3 }
62
61
- length : {hits.hits: 1 }
63
62
- match : {hits.hits.0._index: test }
64
63
- match : {hits.hits.0._id: "172" }
77
76
# search with a point in time
78
77
- do :
79
78
search :
80
- rest_total_hits_as_int : true
81
79
body :
82
80
size : 1
83
81
query :
88
86
pit :
89
87
id : " $point_in_time_id"
90
88
91
- - match : {hits.total: 3 }
89
+ - match : {hits.total.value : 3 }
92
90
- length : {hits.hits: 1 }
93
91
- match : {hits.hits.0._index: test }
94
92
- match : {hits.hits.0._id: "42" }
97
95
98
96
- do :
99
97
search :
100
- rest_total_hits_as_int : true
101
98
body :
102
99
size : 1
103
100
query :
@@ -108,7 +105,7 @@ setup:
108
105
pit :
109
106
id : " $point_in_time_id"
110
107
111
- - match : {hits.total: 3}
108
+ - match : {hits.total.value : 3}
112
109
- length : {hits.hits: 1 }
113
110
- match : {hits.hits.0._index: test }
114
111
- match : {hits.hits.0._id: "1" }
@@ -117,7 +114,6 @@ setup:
117
114
118
115
- do :
119
116
search :
120
- rest_total_hits_as_int : true
121
117
body :
122
118
size : 1
123
119
query :
@@ -129,7 +125,7 @@ setup:
129
125
id : " $point_in_time_id"
130
126
keep_alive : 1m
131
127
132
- - match : {hits.total: 3}
128
+ - match : {hits.total.value : 3}
133
129
- length : {hits.hits: 0 }
134
130
135
131
- do :
@@ -150,7 +146,6 @@ setup:
150
146
151
147
- do :
152
148
search :
153
- rest_total_hits_as_int : true
154
149
body :
155
150
size : 2
156
151
query :
@@ -161,7 +156,7 @@ setup:
161
156
id : " $point_in_time_id"
162
157
keep_alive : 1m
163
158
164
- - match : {hits.total: 4 }
159
+ - match : {hits.total.value : 4 }
165
160
- length : {hits.hits: 2 }
166
161
- match : {hits.hits.0._index: test }
167
162
- match : {hits.hits.0._id: "172" }
@@ -172,3 +167,41 @@ setup:
172
167
close_point_in_time :
173
168
body :
174
169
id : " $point_in_time_id"
170
+
171
+ ---
172
+ " msearch " :
173
+ - skip :
174
+ version : " - 7.99.99"
175
+ reason : " After backport: 7.9.99 => point in time is introduced in 7.10"
176
+ - do :
177
+ open_point_in_time :
178
+ index : " t*"
179
+ keep_alive : 5m
180
+ - set : {id: point_in_time_id}
181
+
182
+ - do :
183
+ msearch :
184
+ body :
185
+ - {}
186
+ - { query: { match: { _index: test }}, pit: { id: "$point_in_time_id" }}
187
+ - {}
188
+ - { query: { match_all: {}}, pit: { id: "$point_in_time_id" }}
189
+
190
+ - match : { responses.0.hits.total.value: 3 }
191
+ - match : { responses.0.hits.total.relation: eq }
192
+ - match : { responses.1.hits.total.value: 4 }
193
+ - match : { responses.1.hits.total.relation: eq }
194
+
195
+ - do :
196
+ catch : bad_request
197
+ msearch :
198
+ body :
199
+ - index : index
200
+ - { query: { match: { foo: bar }}, pit: { id: "$point_in_time_id" }}
201
+ - index : index2
202
+ - { query: { match_all: {}}, pit: { id: "$point_in_time_id" }}
203
+
204
+ - do :
205
+ close_point_in_time :
206
+ body :
207
+ id : " $point_in_time_id"
0 commit comments