diff --git a/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/RollupResponseTranslationTests.java b/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/RollupResponseTranslationTests.java index 999bfd86a9d..78e2f73b2cd 100644 --- a/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/RollupResponseTranslationTests.java +++ b/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/RollupResponseTranslationTests.java @@ -896,7 +896,7 @@ public class RollupResponseTranslationTests extends AggregatorTestCase { indexWriter.close(); IndexReader indexReader = DirectoryReader.open(directory); - IndexSearcher indexSearcher = newSearcher(indexReader, true, true); + IndexSearcher indexSearcher = newIndexSearcher(indexReader); Aggregator aggregator = createAggregator(aggBuilder, indexSearcher, fieldType); try { diff --git a/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job/IndexerUtilsTests.java b/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job/IndexerUtilsTests.java index be5c34bea45..12d5c4223be 100644 --- a/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job/IndexerUtilsTests.java +++ b/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job/IndexerUtilsTests.java @@ -77,7 +77,7 @@ public class IndexerUtilsTests extends AggregatorTestCase { indexWriter.close(); IndexReader indexReader = DirectoryReader.open(directory); - IndexSearcher indexSearcher = newSearcher(indexReader, true, true); + IndexSearcher indexSearcher = newIndexSearcher(indexReader); DateFieldMapper.Builder builder = new DateFieldMapper.Builder(timestampField); DateFieldMapper.DateFieldType timestampFieldType = builder.fieldType(); @@ -144,7 +144,7 @@ public class IndexerUtilsTests extends AggregatorTestCase { indexWriter.close(); IndexReader indexReader = DirectoryReader.open(directory); - IndexSearcher indexSearcher = newSearcher(indexReader, true, true); + IndexSearcher indexSearcher = newIndexSearcher(indexReader); DateFieldMapper.Builder builder = new DateFieldMapper.Builder(timestampField); DateFieldMapper.DateFieldType timestampFieldType = builder.fieldType(); @@ -216,7 +216,7 @@ public class IndexerUtilsTests extends AggregatorTestCase { indexWriter.close(); IndexReader indexReader = DirectoryReader.open(directory); - IndexSearcher indexSearcher = newSearcher(indexReader, true, true); + IndexSearcher indexSearcher = newIndexSearcher(indexReader); MappedFieldType valueFieldType = new NumberFieldMapper.NumberFieldType(NumberFieldMapper.NumberType.LONG); valueFieldType.setName(valueField); @@ -281,7 +281,7 @@ public class IndexerUtilsTests extends AggregatorTestCase { indexWriter.close(); IndexReader indexReader = DirectoryReader.open(directory); - IndexSearcher indexSearcher = newSearcher(indexReader, true, true); + IndexSearcher indexSearcher = newIndexSearcher(indexReader); DateFieldMapper.Builder builder = new DateFieldMapper.Builder(timestampField); DateFieldMapper.DateFieldType timestampFieldType = builder.fieldType();