Class MultiIndexSearcher
A provider that allows for searching across multiple indexes
public class MultiIndexSearcher : BaseLuceneSearcher, ISearcher, IDisposable
- Inheritance
-
MultiIndexSearcher
- Implements
- Inherited Members
Constructors
MultiIndexSearcher(string, IEnumerable<IIndex>, Analyzer?)
Constructor to allow for creating a searcher at runtime
[Obsolete("To remove in Examine V5")]
public MultiIndexSearcher(string name, IEnumerable<IIndex> indexes, Analyzer? analyzer = null)
Parameters
name
stringindexes
IEnumerable<IIndex>analyzer
Analyzer
MultiIndexSearcher(string, IEnumerable<IIndex>, FacetsConfig, Analyzer?)
Constructor to allow for creating a searcher at runtime
public MultiIndexSearcher(string name, IEnumerable<IIndex> indexes, FacetsConfig facetsConfig, Analyzer? analyzer = null)
Parameters
name
stringindexes
IEnumerable<IIndex>facetsConfig
FacetsConfigGet the current Lucene.Net.Facet.FacetsConfig by injecting FacetsConfig or use
for an empty configurationnew FacetsConfig()
analyzer
Analyzer
MultiIndexSearcher(string, Lazy<IEnumerable<ISearcher>>, Analyzer?)
Constructor to allow for creating a searcher at runtime
[Obsolete("To remove in Examine V5")]
public MultiIndexSearcher(string name, Lazy<IEnumerable<ISearcher>> searchers, Analyzer? analyzer = null)
Parameters
name
stringsearchers
Lazy<IEnumerable<ISearcher>>analyzer
Analyzer
MultiIndexSearcher(string, Lazy<IEnumerable<ISearcher>>, FacetsConfig, Analyzer?)
Constructor to allow for creating a searcher at runtime
public MultiIndexSearcher(string name, Lazy<IEnumerable<ISearcher>> searchers, FacetsConfig facetsConfig, Analyzer? analyzer = null)
Parameters
name
stringsearchers
Lazy<IEnumerable<ISearcher>>facetsConfig
FacetsConfigGet the current Lucene.Net.Facet.FacetsConfig by injecting FacetsConfig or use
for an empty configurationnew FacetsConfig()
analyzer
Analyzer
Properties
Searchers
The underlying LuceneSearchers that will be searched across
public IEnumerable<LuceneSearcher> Searchers { get; }
Property Value
SearchersInitialized
Are the searchers initialized
public bool SearchersInitialized { get; }
Property Value
Methods
GetSearchContext()
Gets the seach context
public override ISearchContext GetSearchContext()