From 7e9261c9ffeb50d35a6359d6974b245db973e449 Mon Sep 17 00:00:00 2001 From: Gao Binlong Date: Mon, 30 Oct 2023 15:14:00 +0800 Subject: [PATCH] Fix test failure Signed-off-by: Gao Binlong --- .../rest-api-spec/test/search/190_index_prefix_search.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search/190_index_prefix_search.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search/190_index_prefix_search.yml index 30b82c82b06dd..baa214005bcd2 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search/190_index_prefix_search.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search/190_index_prefix_search.yml @@ -12,7 +12,7 @@ setup: max_chars: 5 text_with_pos_inc_gap: type: text - text_with_pos_inc_gap: 201 + position_increment_gap: 201 index_prefixes: min_chars: 2 max_chars: 5 @@ -32,13 +32,13 @@ setup: index: index: test id: 3 - body: { text: ["a", "b-12"] } + body: { text: ["foo", "b-12"] } - do: index: index: test id: 4 - body: { text_with_pos_inc_gap: ["a", "b-12"] } + body: { text_with_pos_inc_gap: ["foo", "b-12"] } - do: indices.refresh: @@ -148,7 +148,7 @@ setup: - match: {hits.total: 1} --- -"search index prefixes with multiple value": +"search index prefixes with multiple value and custom position_increment_gap": - do: search: rest_total_hits_as_int: true