Check index sorting with no replica since we cannot ensure that the replica index is ready when forceMerge is called. Closes
body:
settings:
number_of_shards: 1
- number_of_replicas: 1
+ number_of_replicas: 0
index.sort.field: rank
mappings:
test:
rank:
type: integer
+ - do:
+ cluster.health:
+ wait_for_status: green
+
- do:
index:
index: test
indices.refresh:
index: test
+ - do:
+ indices.segments:
+ index: test
+
+ - match: { _shards.total: 1}
+ - length: { indices.test.shards.0: 1}
+ - length: { indices.test.shards.0.0.segments: 1}
+
- do:
search:
index: test
