This commit is contained in:
Shibi Balamurugan 2024-11-07 15:59:21 -05:00
parent d55373e765
commit d34ffeb1d4
No known key found for this signature in database
GPG Key ID: A20F0CCBFF9FAC8C
2 changed files with 4 additions and 4 deletions

View File

@ -114,8 +114,8 @@ public final class SearcherManager extends ReferenceManager<IndexSearcher> {
}
/**
* Creates and returns a new SearcherManager from an existing {@link IndexReader}. Note that
* this steals the incoming reference.
* Creates and returns a new SearcherManager from an existing {@link IndexReader}. Note that this
* steals the incoming reference.
*
* @param reader the IndexReader.
* @param searcherFactory An optional {@link SearcherFactory}. Pass <code>null</code> if you don't

View File

@ -561,13 +561,13 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase {
MultiReader reader = new MultiReader(nrtReader, nrtReader2);
SearcherManager mgr = new SearcherManager(reader, null);
for(int i=0;i<10;i++) {
for (int i = 0; i < 10; i++) {
Document d = new Document();
d.add(new TextField("contents", Integer.toString(i), Field.Store.NO));
w.addDocument(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());
}