[Test] Make sure that QueryPhaseTests#testIndexSortScrollOptimization creates segments that can be early terminated

This commit is contained in:
Jim Ferenczi 2017-07-18 19:30:15 +02:00
parent e24af64de2
commit 4cd9728f55
1 changed files with 2 additions and 0 deletions

View File

@ -499,6 +499,8 @@ public class QueryPhaseTests extends IndexShardTestCase {
doc.add(new NumericDocValuesField("tiebreaker", i));
w.addDocument(doc);
}
// Make sure that we can early terminate queries on this index
w.forceMerge(3);
w.close();
TestSearchContext context = new TestSearchContext(null, indexShard);