mirror of https://github.com/apache/lucene.git
Style
This commit is contained in:
parent
d55373e765
commit
d34ffeb1d4
|
@ -114,8 +114,8 @@ public final class SearcherManager extends ReferenceManager<IndexSearcher> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and returns a new SearcherManager from an existing {@link IndexReader}. Note that
|
* Creates and returns a new SearcherManager from an existing {@link IndexReader}. Note that this
|
||||||
* this steals the incoming reference.
|
* steals the incoming reference.
|
||||||
*
|
*
|
||||||
* @param reader the IndexReader.
|
* @param reader the IndexReader.
|
||||||
* @param searcherFactory An optional {@link SearcherFactory}. Pass <code>null</code> if you don't
|
* @param searcherFactory An optional {@link SearcherFactory}. Pass <code>null</code> if you don't
|
||||||
|
|
|
@ -561,13 +561,13 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase {
|
||||||
MultiReader reader = new MultiReader(nrtReader, nrtReader2);
|
MultiReader reader = new MultiReader(nrtReader, nrtReader2);
|
||||||
|
|
||||||
SearcherManager mgr = new SearcherManager(reader, null);
|
SearcherManager mgr = new SearcherManager(reader, null);
|
||||||
for(int i=0;i<10;i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
Document d = new Document();
|
Document d = new Document();
|
||||||
d.add(new TextField("contents", Integer.toString(i), Field.Store.NO));
|
d.add(new TextField("contents", Integer.toString(i), Field.Store.NO));
|
||||||
w.addDocument(new Document());
|
w.addDocument(new Document());
|
||||||
|
|
||||||
Document d2 = new Document();
|
Document d2 = new Document();
|
||||||
d2.add(new TextField("contents", Integer.toString(i+10), Field.Store.NO));
|
d2.add(new TextField("contents", Integer.toString(i + 10), Field.Store.NO));
|
||||||
w2.addDocument(new Document());
|
w2.addDocument(new Document());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue