Table of Contents

Class MultiIndexSearcher

Namespace
Examine.Lucene.Providers
Assembly
Examine.Lucene.dll

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 string
indexes 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 string
indexes IEnumerable<IIndex>
facetsConfig FacetsConfig

Get the current Lucene.Net.Facet.FacetsConfig by injecting FacetsConfig or use

new FacetsConfig()
for an empty configuration
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 string
searchers 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 string
searchers Lazy<IEnumerable<ISearcher>>
facetsConfig FacetsConfig

Get the current Lucene.Net.Facet.FacetsConfig by injecting FacetsConfig or use

new FacetsConfig()
for an empty configuration
analyzer Analyzer

Properties

Searchers

The underlying LuceneSearchers that will be searched across

public IEnumerable<LuceneSearcher> Searchers { get; }

Property Value

IEnumerable<LuceneSearcher>

SearchersInitialized

Are the searchers initialized

public bool SearchersInitialized { get; }

Property Value

bool

Methods

GetSearchContext()

Gets the seach context

public override ISearchContext GetSearchContext()

Returns

ISearchContext