From 860a5847b7feabd62b09d4350d400a9df97ca539 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 22 Jan 2016 16:12:06 +0000 Subject: [PATCH] LUCENE-6980: fix a few more places to just use default (true) for applyAllDeletes git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726250 13f79535-47bb-0310-9956-ffa450edef68 --- .../codecs/compressing/TestCompressingTermVectorsFormat.java | 2 +- .../java/org/apache/solr/core/StandardIndexReaderFactory.java | 2 +- .../src/test/org/apache/solr/core/AlternateDirectoryTest.java | 2 +- solr/core/src/test/org/apache/solr/search/TestStressLucene.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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