Skip to content

Commit 59f30dd

Browse files
committed
Force merge segment to 1
Signed-off-by: bowenlan-amzn <[email protected]>
1 parent 1c807cf commit 59f30dd

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/10_histogram.yml

+5
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,11 @@ setup:
678678
- '{"index": {}}'
679679
- '{"date": "2016-03-01"}'
680680

681+
- do:
682+
indices.forcemerge:
683+
index: test_2
684+
max_num_segments: 1
685+
681686
- do:
682687
search:
683688
index: test_2

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/230_composite.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,11 @@ setup:
11221122
}
11231123
]
11241124

1125+
- do:
1126+
indices.forcemerge:
1127+
index: test_2
1128+
max_num_segments: 1
1129+
11251130
- match: { hits.total.value: 4 }
11261131
- length: { aggregations.test.buckets: 4 }
11271132
- match: { profile.shards.0.aggregations.0.debug.optimized_segments: 1 }

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/330_auto_date_histogram.yml

+5
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ setup:
145145
field: date
146146
buckets: 2
147147

148+
- do:
149+
indices.forcemerge:
150+
index: test_profile
151+
max_num_segments: 1
152+
148153
- match: { hits.total.value: 4 }
149154
- length: { aggregations.histo.buckets: 2 }
150155
- match: { profile.shards.0.aggregations.0.type: AutoDateHistogramAggregator.FromSingle }

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/40_range.yml

+5
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,11 @@ setup:
568568
- '{"index": {}}'
569569
- '{"double" : 50}'
570570

571+
- do:
572+
indices.forcemerge:
573+
index: test_profile
574+
max_num_segments: 1
575+
571576
- do:
572577
search:
573578
index: test_profile

0 commit comments

Comments
 (0)