Browse Source

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

Jim Ferenczi 8 years ago
parent
commit
4cd9728f55

+ 2 - 0
core/src/test/java/org/elasticsearch/search/query/QueryPhaseTests.java

@@ -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);