Skip to content

Commit

Permalink
Force merge segment to 1
Browse files Browse the repository at this point in the history
Signed-off-by: bowenlan-amzn <[email protected]>
  • Loading branch information
bowenlan-amzn committed Jun 21, 2024
1 parent 1c807cf commit 59f30dd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ setup:
- '{"index": {}}'
- '{"date": "2016-03-01"}'

- do:
indices.forcemerge:
index: test_2
max_num_segments: 1

- do:
search:
index: test_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,11 @@ setup:
}
]

- do:
indices.forcemerge:
index: test_2
max_num_segments: 1

- match: { hits.total.value: 4 }
- length: { aggregations.test.buckets: 4 }
- match: { profile.shards.0.aggregations.0.debug.optimized_segments: 1 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ setup:
field: date
buckets: 2

- do:
indices.forcemerge:
index: test_profile
max_num_segments: 1

- match: { hits.total.value: 4 }
- length: { aggregations.histo.buckets: 2 }
- match: { profile.shards.0.aggregations.0.type: AutoDateHistogramAggregator.FromSingle }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,11 @@ setup:
- '{"index": {}}'
- '{"double" : 50}'

- do:
indices.forcemerge:
index: test_profile
max_num_segments: 1

- do:
search:
index: test_profile
Expand Down

0 comments on commit 59f30dd

Please sign in to comment.