From 9e225dc9b85c4fc2d3d910846bd0da25bc6a40df Mon Sep 17 00:00:00 2001 From: Peng Huo Date: Wed, 2 Mar 2022 10:34:02 -0800 Subject: [PATCH] Fix flaky test case - string profiler via global ordinals (#2226) forcemerge to one segment before executing aggregation query. Signed-off-by: Peng Huo --- .../rest-api-spec/test/search.aggregation/20_terms.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/20_terms.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/20_terms.yml index 869214f9111c6..7c7a223044725 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/20_terms.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/20_terms.yml @@ -820,6 +820,10 @@ setup: { "str": "cow", "number": 1 } { "index": {} } { "str": "pig", "number": 1 } + - do: + indices.forcemerge: + index: test_1 + max_num_segments: 1 - do: search: