test: make sure we don't flush during indexing the percolator queries

This commit is contained in:
Martijn van Groningen 2016-03-29 16:21:25 +02:00
parent 798e4281fa
commit 60793a848e
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,8 @@ public class PercolatorQueryCacheTests extends ESTestCase {
IndexWriter indexWriter = new IndexWriter(
directory,
newIndexWriterConfig(new MockAnalyzer(random()))
.setMergePolicy(NoMergePolicy.INSTANCE)
.setMaxBufferedDocs(16)
);
boolean legacyFormat = randomBoolean();