Skip to content

Commit 5dac430

Browse files
finnegancarrollakolarkunnu
authored andcommitted
Fix segment count for optimized agg rest test (opensearch-project#16067)
Signed-off-by: Finn Carroll <[email protected]>
1 parent c4356af commit 5dac430

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/360_date_histogram.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,19 @@ setup:
109109

110110
---
111111
"Date histogram aggregation w/ shared field range test":
112+
- do:
113+
indices.create:
114+
index: dhisto-agg-w-query
115+
body:
116+
settings:
117+
number_of_shards: 1
118+
number_of_replicas: 0
119+
refresh_interval: -1
120+
mappings:
121+
properties:
122+
date:
123+
type: date
124+
112125
- do:
113126
bulk:
114127
refresh: true
@@ -127,6 +140,11 @@ setup:
127140
- '{"index": {}}'
128141
- '{"date": "2025-02-14"}'
129142

143+
- do:
144+
indices.forcemerge:
145+
index: dhisto-agg-w-query
146+
max_num_segments: 1
147+
130148
- do:
131149
search:
132150
index: dhisto-agg-w-query

0 commit comments

Comments
 (0)