2121 name :
2222 type : keyword
2323 vector :
24- type : rank_vector
24+ type : rank_vectors
2525 dims : 3
2626
2727 nested :
3030 paragraph_id :
3131 type : keyword
3232 vector :
33- type : rank_vector
33+ type : rank_vectors
3434 dims : 3
3535
3636 - do :
@@ -146,7 +146,9 @@ setup:
146146 - match : { hits.hits.3._source.name: "zoolander.jpg" }
147147 - length : { hits.hits.3._source.nested: 3 }
148148 - exists : hits.hits.3._source.nested.0.vector
149- - length : { hits.hits.3._source.nested.0.vector: 3 }
149+ - length : { hits.hits.3._source.nested.0.vector: 2 }
150+ - length : { hits.hits.3._source.nested.0.vector.0: 3 }
151+ - length : { hits.hits.3._source.nested.0.vector.1: 3 }
150152 - match : { hits.hits.3._source.nested.0.paragraph_id: 0 }
151153
152154 - do :
@@ -178,10 +180,13 @@ setup:
178180 - length : { hits.hits.3._source: 1 }
179181 - length : { hits.hits.3._source.nested: 2 }
180182 - exists : hits.hits.3._source.nested.0.vector
181- - length : { hits.hits.3._source.nested.0.vector: 3 }
183+ - length : { hits.hits.3._source.nested.0.vector: 2 }
184+ - length : { hits.hits.3._source.nested.0.vector.0: 3 }
185+ - length : { hits.hits.3._source.nested.0.vector.1: 3 }
182186 - not_exists : hits.hits.3._source.nested.0.paragraph_id
183187 - exists : hits.hits.3._source.nested.1.vector
184- - length : { hits.hits.3._source.nested.1.vector: 3 }
188+ - length : { hits.hits.3._source.nested.1.vector: 1 }
189+ - length : { hits.hits.3._source.nested.1.vector.0: 3 }
185190 - not_exists : hits.hits.3._source.nested.1.paragraph_id
186191
187192 - do :
@@ -199,7 +204,7 @@ setup:
199204 - match : { hits.hits.0._id: "1"}
200205 - match : { hits.hits.0._source.name: "cow.jpg"}
201206 - not_exists : hits.hits.0._source.vector
202- - match : { hits.hits.0.fields.vector: [[1, 2, 3], [4, 5, 6]]}
207+ - match : { hits.hits.0.fields.vector: [[1.0 , 2.0 , 3.0 ], [4.0 , 5.0 , 6.0 ]]}
203208
204209 - match : { hits.hits.1._id: "2"}
205210 - match : { hits.hits.1._source.name: "moose.jpg"}
@@ -240,11 +245,14 @@ setup:
240245 - length : { items.0.update.get._source.nested: 3}
241246 - exists : items.0.update.get._source.nested.0.vector
242247 - match : { items.0.update.get._source.nested.0.paragraph_id: 0 }
243- - length : { items.0.update.get._source.nested.0.vector: 3 }
248+ - length : { items.0.update.get._source.nested.0.vector: 2 }
249+ - length : { items.0.update.get._source.nested.0.vector.0: 3 }
250+ - length : { items.0.update.get._source.nested.0.vector.1: 3 }
244251 - not_exists : items.0.update.get._source.nested.1.vector
245252 - match : { items.0.update.get._source.nested.1.paragraph_id: 1 }
246253 - exists : items.0.update.get._source.nested.2.vector
247- - length : { items.0.update.get._source.nested.2.vector: 3 }
254+ - length : { items.0.update.get._source.nested.2.vector: 1 }
255+ - length : { items.0.update.get._source.nested.2.vector.0: 3 }
248256 - match : { items.0.update.get._source.nested.2.paragraph_id: 2 }
249257 - set : { items.0.update.get._source.nested: original_nested }
250258
@@ -303,11 +311,14 @@ setup:
303311 - length : { get._source.nested: 3}
304312 - exists : get._source.nested.0.vector
305313 - match : { get._source.nested.0.paragraph_id: 0 }
306- - length : { get._source.nested.0.vector: 3 }
314+ - length : { get._source.nested.0.vector: 2 }
315+ - length : { get._source.nested.0.vector.0: 3 }
316+ - length : { get._source.nested.0.vector.1: 3 }
307317 - not_exists : get._source.nested.1.vector
308318 - match : { get._source.nested.1.paragraph_id: 1 }
309319 - exists : get._source.nested.2.vector
310- - length : { get._source.nested.2.vector: 3 }
320+ - length : { get._source.nested.2.vector: 1 }
321+ - length : { get._source.nested.2.vector.0: 3 }
311322 - match : { get._source.nested.2.paragraph_id: 2 }
312323 - set : { get._source.nested: original_nested }
313324
0 commit comments