From 7f6d1da3259332b6475045ac296963459b52e656 Mon Sep 17 00:00:00 2001 From: Kathleen DeRusso Date: Mon, 16 Dec 2024 15:48:33 -0500 Subject: [PATCH] Remove shard settings; only check for counts and not specific doc IDs --- .../test/inference/45_semantic_text_match.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/45_semantic_text_match.yml b/x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/45_semantic_text_match.yml index b1ca7d68541cb..28093ba49e6cc 100644 --- a/x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/45_semantic_text_match.yml +++ b/x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/45_semantic_text_match.yml @@ -61,9 +61,6 @@ setup: inference_id: sparse-inference-id non_inference_field: type: text - settings: - number_of_shards: 1 - number_of_replicas: 0 - do: indices.create: @@ -76,9 +73,6 @@ setup: inference_id: dense-inference-id non_inference_field: type: text - settings: - number_of_shards: 1 - number_of_replicas: 0 - do: indices.create: @@ -216,8 +210,6 @@ setup: query: "inference test" - match: { hits.total.value: 2 } - - match: { hits.hits.0._id: "doc_1" } - - match: { hits.hits.1._id: "doc_2" } # Test querying multiple indices that either use the same inference ID or combine semantic_text with lexical search - do: @@ -252,9 +244,6 @@ setup: query: "inference test" - match: { hits.total.value: 3 } - - match: { hits.hits.0._id: "doc_1" } - - match: { hits.hits.1._id: "doc_3" } - - match: { hits.hits.2._id: "doc_2" } --- "Query a field that has no indexed inference results":