From 9aabc1ecb6e6353a79a83246740f589d0227fcb3 Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Thu, 21 Nov 2024 10:06:59 +0000 Subject: [PATCH] fix yml test --- .../test/inference/30_semantic_text_inference.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/30_semantic_text_inference.yml b/x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/30_semantic_text_inference.yml index e2f29d4ebd628..39b1e9b91aaaf 100644 --- a/x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/30_semantic_text_inference.yml +++ b/x-pack/plugin/inference/src/yamlRestTest/resources/rest-api-spec/test/inference/30_semantic_text_inference.yml @@ -540,7 +540,10 @@ setup: body: | {"delete":{ "_id": "2"}} {"update":{"_id": "1"}} - {"doc":{"dense_field": "updated text"}} + {"doc":{"dense_field": "updated text", "sparse_field": "another text"}} + + - match: { errors: false } + - do: search: @@ -554,3 +557,4 @@ setup: - match: { hits.total.value: 1 } - match: { hits.total.relation: eq } - match: { hits.hits.0._source.dense_field.text: "updated text" } + - match: { hits.hits.0._source.sparse_field.text: "another text" }