Links
dtSearch Text Retrieval Engine Programmer's Reference
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. IsThreadDoneWait will return immediately if the thread is done, or it will wait up to millisecondsToWait to return if the thread is not done yet. IsThreadDoneWait should be called when you are checking in a loop, so the indexing thread will have a chance to complete. 
Properties
Property 
Description 
Add documents to an existing index. If ActionCreate is not set, the index must already exist or the IndexJob will fail. 
Remove obsolete information from the index. 
Create a new index. If an index already exists in the specified directory, the index will be destroyed and replaced with a new, empty 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. You can use this to index databases with ADO, RDO, DAO, etc., or to index MAPI message stores with CDO. For more information, see "Indexing COM Data Sources". 
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. (ActionMerge must be true for the merge to occur.) For each index, provide the full path to the index. If more than one index path is provided, separate the paths with spaces. If a path contains a space, use quotation marks around the path. Example:  
Flags controlling how the indexing should be done. See the IndexingFlags enumeration. 
Obsolete 
Full path of the folder where the index is located. 
Returns true if an indexing thread started by ExecuteInThread is done. IsThreadDoneWait will return immediately if the thread is done, or it will wait up to millisecondsToWait to return if the thread is not done yet. IsThreadDoneWait should be called when you are checking in a loop, so the indexing thread will have a chance to complete. 
Maximum amount of memory that the indexer will use for indexing words (in megabytes). 
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. Can be used to provide a progress display and to provide an opportunity to cancel an index update. 
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. During indexing, the dtSearch Engine may need to create temporary files to store word lists that are too large to fit into memory. By default, these files will be placed in the index folder. Use this setting to specify a different location for the word lists. The indexer will automatically delete the word list files when the index update completes. 
Directory containing files to index. To specify a directory and its subdirectories, add <+> (less than, plus, greater than) following the directory name. To specify more than one directory, write the directory list to a file and use ToAddDirListName
File containing a list of directories to index. The list must be a text file containing one item per line. A directory name can have <+> after it to indicate that subfolders should also be searched. If any non-English characters appear in the directory names, the file must be encoded as UTF-8. 
Filename filters specifying files not to be indexed. A file will be indexed if it matches one of the ToAddIncludeFilters and does not match any of the ToAddExcludeFilters. 
File containing a list of files to index. Can be used instead of or in addition to ToAddDirListName. The list must be a text file containing one filename. If any non-English characters appear in the filenames, the file must be encoded as UTF-8. 
Filename filters specifying files to be indexed. A file will be indexed if it matches one of the ToAddIncludeFilters and does not match any of the ToAddExcludeFilters
Name of file containing list of files to remove from the index. See "Building and Maintaining Indexes" for more information 
Legend
 
Property 
 
write only 
 
read only 
 
Method 
Links
You are here: COM Interface > Interfaces > IIndexJob Interface
Copyright (c) 1995-2008 dtSearch Corp. All rights reserved.