Class SearchContext
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
searcherManagerSearcherManagerThe manager responsible for managing the searcher instances.
fieldValueTypeCollectionFieldValueTypeCollectionThe collection of field value types used for indexing and searching.
isNrtboolIndicates 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
fieldNamestring
Returns
GetSearcher()
Gets the searcher of the context
public ISearcherReference GetSearcher()