mirror of https://github.com/apache/lucene.git
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:
parent
b2ee2d51c4
commit
860a5847b7
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue