From 57858591c5cf4dc62d07c1b7f5ab0c3b2cee2cf3 Mon Sep 17 00:00:00 2001 From: Marc Handalian Date: Thu, 7 Aug 2025 11:06:05 -0700 Subject: [PATCH] Fix broken yml test for combined_fields. This test breaks with a repeatable seed because we randomly set shard count above 1 which will impact scoring. Fixing it by setting shard count to 1 instead of using dfs query then fetch. Signed-off-by: Marc Handalian --- .../resources/rest-api-spec/test/search/400_combined_fields.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search/400_combined_fields.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search/400_combined_fields.yml index e54f7fc9c12bb..f5f0617eb0779 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search/400_combined_fields.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search/400_combined_fields.yml @@ -3,6 +3,8 @@ setup: indices.create: index: cf_test body: + settings: + number_of_shards: 1 mappings: properties: headline: