Method NewSearcher
NewSearcher(IndexReader)
Create a new searcher over the reader. this searcher might randomly use
threads.
LUCENENET specific
Is non-static because Lucene.Net.Util.LuceneTestCase.ClassEnvRule is now non-static.
Declaration
public IndexSearcher NewSearcher(IndexReader r)
Parameters
Returns
NewSearcher(IndexReader, Similarity)
Declaration
public static IndexSearcher NewSearcher(IndexReader r, Similarity similarity)
Parameters
Type |
Name |
Description |
IndexReader |
r |
|
Similarity |
similarity |
LUCENENET specific
Removes dependency on
|
Returns
NewSearcher(IndexReader, Boolean, Similarity)
Create a new searcher over the reader. this searcher might randomly use
threads.
Declaration
public static IndexSearcher NewSearcher(IndexReader r, bool maybeWrap, Similarity similarity)
Parameters
Type |
Name |
Description |
IndexReader |
r |
|
System.Boolean |
maybeWrap |
|
Similarity |
similarity |
LUCENENET specific
Removes dependency on
|
Returns
NewSearcher(IndexReader, Boolean)
Create a new searcher over the reader. This searcher might randomly use
threads.
Declaration
public IndexSearcher NewSearcher(IndexReader r, bool maybeWrap)
Parameters
Type |
Name |
Description |
IndexReader |
r |
|
System.Boolean |
maybeWrap |
|
Returns
NewSearcher(IndexReader, Boolean, Boolean)
Declaration
public IndexSearcher NewSearcher(IndexReader r, bool maybeWrap, bool wrapWithAssertions)
Parameters
Type |
Name |
Description |
IndexReader |
r |
|
System.Boolean |
maybeWrap |
|
System.Boolean |
wrapWithAssertions |
|
Returns
NewSearcher(IndexReader, Boolean, Boolean, Similarity)
Create a new searcher over the reader. this searcher might randomly use
threads. if
maybeWrap
is true, this searcher might wrap the
reader with one that returns null for getSequentialSubReaders. If
wrapWithAssertions
is true, this searcher might be an
AssertingIndexSearcher instance.
Declaration
public static IndexSearcher NewSearcher(IndexReader r, bool maybeWrap, bool wrapWithAssertions, Similarity similarity)
Parameters
Type |
Name |
Description |
IndexReader |
r |
|
System.Boolean |
maybeWrap |
|
System.Boolean |
wrapWithAssertions |
|
Similarity |
similarity |
LUCENENET specific
Removes dependency on
|
Returns