Class BaseIndexBuilder
Base class for the indexer. Simplifies creating your own indexer.
Implements
Namespace: Mediachase.Search.Extensions.Indexers
Assembly: Mediachase.Search.Extensions.dll
Version: 14.26.0Syntax
public abstract class BaseIndexBuilder : Object, ISearchIndexBuilder
Constructors
BaseIndexBuilder()
Declaration
protected BaseIndexBuilder()
Properties
Indexer
Gets or sets the build indexer.
Declaration
public IndexBuilder Indexer { get; set; }
Property Value
| Type | Description |
|---|---|
| IndexBuilder | The build indexer. |
Manager
Gets or sets the manager.
Declaration
public SearchManager Manager { get; set; }
Property Value
| Type | Description |
|---|---|
| SearchManager | The manager. |
Methods
add_SearchIndexMessage(SearchIndexHandler)
Declaration
public void add_SearchIndexMessage(SearchIndexHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchIndexHandler | value |
AddMetaField(SearchDocument, MetaField, Hashtable)
Adds a metafield value to the search document.
Declaration
protected virtual void AddMetaField(SearchDocument doc, MetaField metaField, Hashtable metaObject)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchDocument | doc | The doc. |
| MetaField | metaField | The meta field. |
| System.Collections.Hashtable | metaObject | The meta object. |
BuildIndex(Boolean)
Builds the index.
Declaration
public abstract void BuildIndex(bool rebuild)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | rebuild | if set to |
OnSearchIndexMessage(SearchIndexEventArgs)
Called to raise the SearchIndexMessage event.
Declaration
protected virtual void OnSearchIndexMessage(SearchIndexEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchIndexEventArgs | e | The event arguments. |
remove_SearchIndexMessage(SearchIndexHandler)
Declaration
public void remove_SearchIndexMessage(SearchIndexHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchIndexHandler | value |
UpdateIndex(IEnumerable<Int32>)
Updates the specified items in the index.
Declaration
public abstract bool UpdateIndex(IEnumerable<int> itemIds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Int32> | itemIds | The ids of the items to update. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if successful; otherwise, false. |
Events
SearchIndexMessage
An event handler for progress message events.
Declaration
public event SearchIndexHandler SearchIndexMessage
Event Type
| Type | Description |
|---|---|
| SearchIndexHandler |