You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/90_semantic_text_highlighter.yml
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -416,15 +416,15 @@ setup:
416
416
match_all: {}
417
417
highlight:
418
418
fields:
419
-
body:
419
+
semantic_text_field:
420
420
type: "semantic"
421
421
number_of_fragments: 2
422
422
423
423
- match: { hits.total.value: 1 }
424
424
- match: { hits.hits.0._id: "doc_1" }
425
-
- length: { hits.hits.0.highlight.body: 2 }
426
-
- match: { hits.hits.0.highlight.body.0: "some test data" }
427
-
- match: { hits.hits.0.highlight.body.1: "now with chunks" }
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/90_semantic_text_highlighter_bwc.yml
reason: semantic text field supports match_all query with semantic highlighter, effective from 8.19 and 9.1.0.
297
297
298
+
- do:
299
+
index:
300
+
index: test-sparse-index
301
+
id: doc_1
302
+
body:
303
+
body: [ "ElasticSearch is an open source, distributed, RESTful, search engine which is built on top of Lucene internally and enjoys all the features it provides.", "You Know, for Search!" ]
304
+
refresh: true
305
+
298
306
- do:
299
307
search:
300
308
index: test-sparse-index
@@ -313,6 +321,14 @@ setup:
313
321
- match: { hits.hits.0.highlight.body.0: "ElasticSearch is an open source, distributed, RESTful, search engine which is built on top of Lucene internally and enjoys all the features it provides." }
314
322
- match: { hits.hits.0.highlight.body.1: "You Know, for Search!" }
315
323
324
+
- do:
325
+
index:
326
+
index: test-dense-index
327
+
id: doc_1
328
+
body:
329
+
body: [ "ElasticSearch is an open source, distributed, RESTful, search engine which is built on top of Lucene internally and enjoys all the features it provides.", "You Know, for Search!" ]
330
+
refresh: true
331
+
316
332
- do:
317
333
search:
318
334
index: test-dense-index
@@ -368,15 +384,15 @@ setup:
368
384
match_all: {}
369
385
highlight:
370
386
fields:
371
-
body:
387
+
semantic_text_field:
372
388
type: "semantic"
373
389
number_of_fragments: 2
374
390
375
391
- match: { hits.total.value: 1 }
376
392
- match: { hits.hits.0._id: "doc_1" }
377
-
- length: { hits.hits.0.highlight.body: 2 }
378
-
- match: { hits.hits.0.highlight.body.0: "some test data" }
379
-
- match: { hits.hits.0.highlight.body.1: "now with chunks" }
0 commit comments