mirror of https://github.com/apache/lucene.git
Fix PR
This commit is contained in:
parent
fafe3ffc5f
commit
d55373e765
|
@ -29,12 +29,21 @@ import java.util.concurrent.atomic.AtomicReference;
|
|||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.document.Field;
|
||||
import org.apache.lucene.document.TextField;
|
||||
import org.apache.lucene.index.*;
|
||||
import org.apache.lucene.index.ConcurrentMergeScheduler;
|
||||
import org.apache.lucene.index.DirectoryReader;
|
||||
import org.apache.lucene.index.FilterDirectoryReader;
|
||||
import org.apache.lucene.index.FilterLeafReader;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.IndexWriter;
|
||||
import org.apache.lucene.index.IndexWriterConfig;
|
||||
import org.apache.lucene.index.LeafReader;
|
||||
import org.apache.lucene.index.LeafReaderContext;
|
||||
import org.apache.lucene.index.MultiReader;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.store.AlreadyClosedException;
|
||||
import org.apache.lucene.store.Directory;
|
||||
import org.apache.lucene.tests.analysis.MockAnalyzer;
|
||||
import org.apache.lucene.tests.index.RandomIndexWriter;
|
||||
import org.apache.lucene.util.English;
|
||||
import org.apache.lucene.tests.index.ThreadedIndexingAndSearchingTestCase;
|
||||
import org.apache.lucene.tests.util.LuceneTestCase;
|
||||
import org.apache.lucene.tests.util.LuceneTestCase.SuppressCodecs;
|
||||
|
@ -554,11 +563,11 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase {
|
|||
SearcherManager mgr = new SearcherManager(reader, null);
|
||||
for(int i=0;i<10;i++) {
|
||||
Document d = new Document();
|
||||
d.add(new TextField("contents", English.intToEnglish(i), Field.Store.NO));
|
||||
d.add(new TextField("contents", Integer.toString(i), Field.Store.NO));
|
||||
w.addDocument(new Document());
|
||||
|
||||
Document d2 = new Document();
|
||||
d2.add(new TextField("contents", English.intToEnglish(i+10), Field.Store.NO));
|
||||
d2.add(new TextField("contents", Integer.toString(i+10), Field.Store.NO));
|
||||
w2.addDocument(new Document());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue