From 187cf13dd1341210f86670bb6bf6ce21b862fbca Mon Sep 17 00:00:00 2001 From: Kathleen DeRusso Date: Tue, 17 Dec 2024 18:05:48 -0500 Subject: [PATCH] update yaml test --- .../rest-api-spec/test/ml/sparse_vector_search.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml index 9850c35c5ca34..3481773b0bab3 100644 --- a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml +++ b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml @@ -270,7 +270,7 @@ setup: --- "Test sparse_vector requires one of query or query_vector": - do: - catch: /\[sparse_vector\] requires one of \[query_vector\] or \[query\]/ + catch: /\[sparse_vector\] requires one of \[query_vector\] or \[inference_id\]/ search: index: index-with-sparse-vector body: @@ -312,12 +312,12 @@ setup: - match: { status: 400 } --- -"Test sparse_vector only allows one of query or query_vector": +"Test sparse_vector only allows one of query or query_vector (note the error message is misleading)": - requires: cluster_features: [ "search.semantic_sparse_vector_query_rewrite_interception_supported" ] reason: "sparse vector inference checks updated in 8.18 to support sparse_vector on semantic_text fields" - do: - catch: /\[sparse_vector\] requires one of \[query_vector\] or \[query\]/ + catch: /\[sparse_vector\] requires one of \[query_vector\] or \[inference_id\]/ search: index: index-with-sparse-vector body: