Table of Contents

Class SearchContext

Namespace
Examine.Lucene.Search
Assembly
Examine.Lucene.dll

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public sealed class SearchContext : ISearchContext
Inheritance
SearchContext
Implements
Inherited Members

Constructors

SearchContext(SearcherManager, FieldValueTypeCollection, bool)

Initializes a new instance of the SearchContext class.

public SearchContext(SearcherManager searcherManager, FieldValueTypeCollection fieldValueTypeCollection, bool isNrt)

Parameters

searcherManager SearcherManager

The manager responsible for managing the searcher instances.

fieldValueTypeCollection FieldValueTypeCollection

The collection of field value types used for indexing and searching.

isNrt bool

Indicates whether the search context is using near real-time indexing.

Properties

SearchableFields

The searchable fields of a search context

public string[] SearchableFields { get; }

Property Value

string[]

Methods

GetFieldValueType(string)

Gets the field value type of a field name

public IIndexFieldValueType GetFieldValueType(string fieldName)

Parameters

fieldName string

Returns

IIndexFieldValueType

GetSearcher()

Gets the searcher of the context

public ISearcherReference GetSearcher()

Returns

ISearcherReference