Skip to content

Commit 5c55c39

Browse files
authored
Fix semantic text match failure (#118790)
* Fix semantic text match failure * Remove shard settings; only check for counts and not specific doc IDs
1 parent 8deb32f commit 5c55c39

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/45_semantic_text_match.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@ setup:
210210
query: "inference test"
211211

212212
- match: { hits.total.value: 2 }
213-
- match: { hits.hits.0._id: "doc_1" }
214-
- match: { hits.hits.1._id: "doc_2" }
215213

216214
# Test querying multiple indices that either use the same inference ID or combine semantic_text with lexical search
217215
- do:
@@ -246,9 +244,6 @@ setup:
246244
query: "inference test"
247245

248246
- match: { hits.total.value: 3 }
249-
- match: { hits.hits.0._id: "doc_1" }
250-
- match: { hits.hits.1._id: "doc_3" }
251-
- match: { hits.hits.2._id: "doc_2" }
252247

253248
---
254249
"Query a field that has no indexed inference results":

0 commit comments

Comments
 (0)