Skip to content

Commit 3ba3dc2

Browse files
committed
adapt tests
1 parent 23a1719 commit 3ba3dc2

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/90_semantic_text_highlighter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ setup:
8686
"Highlighting empty index":
8787
- do:
8888
search:
89-
index: test-sparse-index
89+
index: test-dense-index
9090
body:
9191
query:
9292
match_all: {}

x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/90_semantic_text_highlighter_bwc.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,25 @@ setup:
5858
body:
5959
type: semantic_text
6060
inference_id: dense-inference-id
61+
another_body:
62+
type: semantic_text
63+
inference_id: dense-inference-id
64+
65+
---
66+
"Highlighting empty index":
67+
- do:
68+
search:
69+
index: test-dense-index
70+
body:
71+
query:
72+
match_all: {}
73+
highlight:
74+
fields:
75+
another_body: {}
76+
77+
- match: { hits.total.value: 1 }
78+
- match: { hits.hits.0._id: "doc_1" }
79+
- not_exists: hits.hits.0.highlight.another_body
6180

6281
---
6382
"Highlighting using a sparse embedding model":

0 commit comments

Comments
 (0)