dtSearch Text Retrieval Engine .NET interface

IndexJob Class

Create or update indexes

For a list of all members of this type, see IndexJob Members.

System.Object
   dtSearch.Engine.DisposableObject
      dtSearch.Engine.NetJobBase
         dtSearch.Engine.IndexJob

public class IndexJob : NetJobBase

Remarks

For more information on creating, updating, and maintaining indexes, see Building and Maintaining Indexes in dtSearchApiRef.chm.

To create or update an index, make an IndexJob, use the properties to describe the indexing task you want the engine to perform, and call the Execute method.

IndexJob provides two ways to specify the text to be indexed: (1) the FoldersToIndex, Include Filters, and ExcludeFilters members let you specify directories and filename filters identifying a set of disk files to index, and (2) the DataSourceToIndex member lets you supply text data directly to the dtSearch Engine for indexing, using an object that implements the DataSource interface. DataSourceToIndex is useful for indexing data from non-file sources such as message stores, SQL databases, dynamically-generated data, or any non-file data accessible to your program.

The Action flags specify the actions you want the engine to perform. If more than one action is specified, the engine will perform the actions in the following order: create, removeDeleted, removeListed, add, compress, merge, verify.

Requirements

Namespace: dtSearch.Engine

Assembly: dtSearchNetApi (in dtSearchNetApi.dll)

See Also

IndexJob Members | dtSearch.Engine Namespace | DataSource | "Building and Maintaining Indexes"