Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
IIndexJob Interface
dten600.idl | Interfaces | Legend | Members | Methods | Properties | Send Feedback

Creates and updates indexes

Class Hierarchy
[ object, uuid(697DF022-B24E-11D3-B57C-00105AA461D0), dual, helpstring("IIndexJob Interface"), pointer_default(unique) ]
interface IIndexJob : IDispatch;
File
Remarks

For more information on creating, updating, and maintaining indexes, see Building and Maintaining Indexes

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 ToAddXXX members let you specify directories and filename filters identifying a set of disk files to index, and the DataSourceToIndex member lets you supply text data directly to the dtSearch Engine for indexing.
  2. 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. For more information, see "Indexing COM Data Sources"

Use the NewIndexJob method of the Server object to create a new IndexJob object.

Group
Methods
Method 
Description 
Aborts an indexing thread started by ExecuteInThread 
Aborts an indexing thread started by ExecuteInThread, without saving any changes to the index. 
Performs the indexing job and returns 0 if the search is successful or -1 if an error occured. 
ExecuteInThread starts the indexing job in a separate thread and returns immediately. 
Returns a table of values describing the index in IndexPath
Returns true if an indexing thread started by ExecuteInThread is done. 
Properties
Property 
Description 
Add documents to an existing index. 
Remove obsolete information from the index. 
Create a new index. 
Merge the indexes listed in IndexesToMerge 
Check that each file in the index still exists on disk and remove from the index any files that no longer exist. 
Remove the files listed in the text file identified by ToRemoveListName from the index. 
Scan all index structures in the index to verify that the index is not damaged. 
Obsolete (concurrent access is always enabled, regardless of the value of this setting) 
Number of megabytes to index before committing the index update. 
Create accent sensitive index, so accents on letters will be treated as significant when searching 
Create case sensitive index, so apple and Apple will be two different words. 
Use relative rather than absolute paths in storing document locations. 
The DataSourceToIndex property provides a way to supply text to be indexed to the dtSearch Engine when the text is not accessible as a disk file. 
Used to specify that the text in certain fields should be stored in the index in a way that permits unique field values to be enumerated quickly. 
After an indexing job is done, the Errors property will contain a JobErrorInfo (IJobErrorInfo) object with any error messages generated during the indexing job. 
When ExecuteInThread was called to start indexing, the thread id of the indexing thread 
Indexes to merge into the target index, which is IndexPath
Flags controlling how the indexing should be done. 
Obsolete 
Full path of the folder where the index is located. 
Returns true if an indexing thread started by ExecuteInThread is done. 
MaxMemToUseMB controls the size of the memory buffers that dtSearch can use to sort words during indexing. 
First document id assigned, or to be assigned, in this index (will be 1 for an empty index) 
Kilobytes indexed so far 
Kilobytes to be indexed 
Location of the file being indexed 
Name of the file being indexed 
Percentage of the current file that has been indexed 
File type of the file being indexed 
Number of documents in the index 
Object to receive status update notifications during indexing. 
IndexingStep value specifying the state of the indexer. 
Percentage of the index update that has been completed 
Number of words in the index 
Fields to be stored in the index for each document and returned as document properties in SearchResults
Folder to use instead of the index folder for temporary files during indexing. 
Directory containing files to index. 
File containing a list of directories to index. 
Filename filters specifying files not to be indexed. 
File containing a list of files to index. 
Filename filters specifying files to be indexed. 
Name of file containing list of files to remove from the index. 
Legend
 
Property 
 
write only 
 
read only 
 
Method 
Links
You are here: COM Interface > Interfaces > IIndexJob Interface
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.