You are here: dtSearch.Engine > IndexJob Class
IndexJob Class
dtSearch Engine API for .NET Framework 2.x-4.x
IndexJob Class

Create or update indexes

Visual Basic
public class IndexJob : NetJobBase;
No members matching the current filter
No members matching the current filter

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.

See also:

Building and Maintaining Indexes in dtSearchApiRef.chm.

Copyright (c) 1998-2021 dtSearch Corp. All rights reserved.