Fix flaky test case - string profiler via global ordinals (#2226)

forcemerge to one segment before executing aggregation query.

Signed-off-by: Peng Huo <penghuo@gmail.com>
This commit is contained in:
Peng Huo 2022-03-02 10:34:02 -08:00 committed by GitHub
parent c8a760658e
commit 9e225dc9b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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: