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
This commit is contained in:
Michael McCandless 2016-01-22 16:12:06 +00:00
parent b2ee2d51c4
commit 860a5847b7
4 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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<nWriteThreads; i++) {
Thread thread = new Thread("WRITER"+i) {