test: make sure we don't flush during indexing the percolator queries
This commit is contained in:
parent
798e4281fa
commit
60793a848e
|
@ -125,6 +125,8 @@ public class PercolatorQueryCacheTests extends ESTestCase {
|
||||||
IndexWriter indexWriter = new IndexWriter(
|
IndexWriter indexWriter = new IndexWriter(
|
||||||
directory,
|
directory,
|
||||||
newIndexWriterConfig(new MockAnalyzer(random()))
|
newIndexWriterConfig(new MockAnalyzer(random()))
|
||||||
|
.setMergePolicy(NoMergePolicy.INSTANCE)
|
||||||
|
.setMaxBufferedDocs(16)
|
||||||
);
|
);
|
||||||
|
|
||||||
boolean legacyFormat = randomBoolean();
|
boolean legacyFormat = randomBoolean();
|
||||||
|
|
Loading…
Reference in New Issue