Table of Contents

Class ExamineManager

Namespace
Examine
Assembly
Examine.Core.dll

Exposes searchers and indexers

public class ExamineManager : IDisposable, IExamineManager
Inheritance
ExamineManager
Implements
Inherited Members
Extension Methods

Constructors

ExamineManager(IEnumerable<IIndex>, IEnumerable<ISearcher>)

public ExamineManager(IEnumerable<IIndex> indexes, IEnumerable<ISearcher> searchers)

Parameters

indexes IEnumerable<IIndex>
searchers IEnumerable<ISearcher>

Properties

Indexes

Gets a list of all index providers

public IEnumerable<IIndex> Indexes { get; }

Property Value

IEnumerable<IIndex>

Remarks

This returns all config based indexes and indexers registered in code

RegisteredSearchers

Gets a list of all manually configured search providers

public IEnumerable<ISearcher> RegisteredSearchers { get; }

Property Value

IEnumerable<ISearcher>

Remarks

This returns only those searchers explicitly registered with AddExamineSearcher or config based searchers

Methods

Dispose()

Call this in Application_End.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Stop(bool)

Used to dispose the manager, can be overridden in web projects to control the unwinding of an appdomain

public virtual void Stop(bool immediate)

Parameters

immediate bool

true to indicate the registered object should unregister from the hosting environment before returning; otherwise, false.

TryGetIndex(string, out IIndex)

Returns an indexer by name

public bool TryGetIndex(string indexName, out IIndex index)

Parameters

indexName string
index IIndex

Returns

bool

true if the index was found by name

TryGetSearcher(string, out ISearcher)

Returns a searcher that was registered with AddExamineSearcher or via config

public bool TryGetSearcher(string searcherName, out ISearcher searcher)

Parameters

searcherName string
searcher ISearcher

Returns

bool

true if the searcher was found by name