Skip to content

Commit

Permalink
Fix segment count for optimized agg rest test (#16067) (#16083)
Browse files Browse the repository at this point in the history
(cherry picked from commit a42e51d)

Signed-off-by: Finn Carroll <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent f78e628 commit bcad069
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ setup:
version: " - 2.16.99"
reason: "Bugfix not backported to 2.16"

- do:
indices.create:
index: dhisto-agg-w-query
body:
settings:
number_of_shards: 1
number_of_replicas: 0
refresh_interval: -1
mappings:
properties:
date:
type: date

- do:
bulk:
refresh: true
Expand All @@ -127,6 +140,11 @@ setup:
- '{"index": {}}'
- '{"date": "2025-02-14"}'

- do:
indices.forcemerge:
index: dhisto-agg-w-query
max_num_segments: 1

- do:
search:
index: dhisto-agg-w-query
Expand Down

0 comments on commit bcad069

Please sign in to comment.