AbstractIndexCreationTaskBase<TIndexDefinition>
public abstract class AbstractIndexCreationTaskBase<TIndexDefinition> : AbstractCommonApiForIndexes, IAbstractIndexCreationTask where TIndexDefinition : IndexDefinition
Base class for creating indexes
Set whether archived, unarchived or all documents will be indexed
Expert: List of compound fields that Corax can use to optimize certain queries
Gets or sets the conventions that should be used when index definition is created.
index can have a priority that controls how much power of the indexing process it is allowed to consume. index priority can be forced by the user.
There are four available values that you can set: Normal, Idle, Disabled, Abandoned
Default value: null means that the priority of the index is Normal.
Set search engine for index.
Default value: null means that the configuration from the database will be used.
Index state
protected AbstractIndexCreationTaskBase()
Provide a way to dynamically index values with runtime known values
Provide a way to dynamically index values with runtime known values
Provide a way to dynamically index values with runtime known values
Creates the index definition.
Generates a spatial field in the index, generating a Point from the provided lat/lng coordinates
Generates a spatial field in the index, generating a Point from the provided lat/lng coordinates
public virtual void Execute(IDocumentStore store, DocumentConventions conventions = null, string database = null)
Executes the index creation against the specified document database using the specified conventions
public virtual Task ExecuteAsync(IDocumentStore store, DocumentConventions conventions = null, string database = null, CancellationToken token = default)
Executes the index creation against the specified document store.