Method GetSearcher
GetSearcher(SearcherFactory, IndexReader)
Expert: creates a searcher from the provided IndexReader using the provided SearcherFactory. NOTE: this decRefs incoming reader on throwing an exception.
Declaration
public static IndexSearcher GetSearcher(SearcherFactory searcherFactory, IndexReader reader)
Parameters
Type | Name | Description |
---|---|---|
SearcherFactory | searcherFactory | |
IndexReader | reader |
Returns
Type | Description |
---|---|
IndexSearcher |