diff --git a/lucene/test-framework/src/test/org/apache/lucene/codecs/compressing/TestCompressingTermVectorsFormat.java b/lucene/test-framework/src/test/org/apache/lucene/codecs/compressing/TestCompressingTermVectorsFormat.java index 7cfbe21a6f2..cde93db1b7e 100644 --- a/lucene/test-framework/src/test/org/apache/lucene/codecs/compressing/TestCompressingTermVectorsFormat.java +++ b/lucene/test-framework/src/test/org/apache/lucene/codecs/compressing/TestCompressingTermVectorsFormat.java @@ -93,7 +93,7 @@ public class TestCompressingTermVectorsFormat extends BaseTermVectorsFormatTestC // by this test. iwConf.setCodec(CompressingCodec.randomInstance(random(), 4*1024, 100, false, 8)); IndexWriter iw = new IndexWriter(dir, iwConf); - DirectoryReader ir = DirectoryReader.open(iw, true); + DirectoryReader ir = DirectoryReader.open(iw); for (int i = 0; i < 5; i++) { Document doc = new Document(); FieldType ft = new FieldType(TextField.TYPE_NOT_STORED); diff --git a/solr/core/src/java/org/apache/solr/core/StandardIndexReaderFactory.java b/solr/core/src/java/org/apache/solr/core/StandardIndexReaderFactory.java index 8a237889b6c..d44cfcb8ca2 100644 --- a/solr/core/src/java/org/apache/solr/core/StandardIndexReaderFactory.java +++ b/solr/core/src/java/org/apache/solr/core/StandardIndexReaderFactory.java @@ -38,6 +38,6 @@ public class StandardIndexReaderFactory extends IndexReaderFactory { @Override public DirectoryReader newReader(IndexWriter writer, SolrCore core) throws IOException { - return DirectoryReader.open(writer, true); + return DirectoryReader.open(writer); } } diff --git a/solr/core/src/test/org/apache/solr/core/AlternateDirectoryTest.java b/solr/core/src/test/org/apache/solr/core/AlternateDirectoryTest.java index d7158067e2b..cf8d7c65f06 100644 --- a/solr/core/src/test/org/apache/solr/core/AlternateDirectoryTest.java +++ b/solr/core/src/test/org/apache/solr/core/AlternateDirectoryTest.java @@ -77,7 +77,7 @@ public class AlternateDirectoryTest extends SolrTestCaseJ4 { @Override public DirectoryReader newReader(IndexWriter writer, SolrCore core) throws IOException { TestIndexReaderFactory.newReaderCalled = true; - return DirectoryReader.open(writer, true); + return DirectoryReader.open(writer); } } diff --git a/solr/core/src/test/org/apache/solr/search/TestStressLucene.java b/solr/core/src/test/org/apache/solr/search/TestStressLucene.java index f8f287d8916..94cf300ed93 100644 --- a/solr/core/src/test/org/apache/solr/search/TestStressLucene.java +++ b/solr/core/src/test/org/apache/solr/search/TestStressLucene.java @@ -109,7 +109,7 @@ public class TestStressLucene extends TestRTGBase { // reader = IndexReader.open(dir); // make this reader an NRT reader from the start to avoid the first non-writer openIfChanged // to only opening at the last commit point. - reader = DirectoryReader.open(writer.w, true); + reader = DirectoryReader.open(writer.w); for (int i=0; i