Interface IIndex
- Namespace
- Examine
- Assembly
- Examine.Core.dll
Interface to represent an Examine Indexer
public interface IIndex
- Extension Methods
Properties
FieldDefinitions
Returns the field definitions for the index
ReadOnlyFieldDefinitionCollection FieldDefinitions { get; }
Property Value
Name
The index name
string Name { get; }
Property Value
Searcher
Returns a searcher for the index
ISearcher Searcher { get; }
Property Value
Methods
CreateIndex()
Creates a new index, any existing index will be deleted
void CreateIndex()
DeleteFromIndex(IEnumerable<string>)
Deletes a node from the index
void DeleteFromIndex(IEnumerable<string> itemIds)
Parameters
itemIds
IEnumerable<string>Node to delete
IndexExists()
determines whether the index exsists or not
bool IndexExists()
Returns
IndexItems(IEnumerable<ValueSet>)
Method to index data
void IndexItems(IEnumerable<ValueSet> values)
Parameters
values
IEnumerable<ValueSet>
Events
IndexOperationComplete
Raised once an index operation is completed
event EventHandler<IndexOperationEventArgs> IndexOperationComplete
Event Type
IndexingError
Occurs for an Indexing Error
event EventHandler<IndexingErrorEventArgs> IndexingError
Event Type
TransformingIndexValues
Raised before the item is indexed allowing developers to customize the data that get's stored in the index
event EventHandler<IndexingItemEventArgs> TransformingIndexValues