See Also
dtSearch Text Retrieval Engine -- .NET 2.0 API 7.64
dtSearch::Engine Namespace

This API implements a .NET wrapper around the dtSearch Text Retrieval Engine, dten600.dll. For overview topics covering indexing, searching, the dtSearch query language, etc., see the dtSearchApiRef.chm file included with the dtSearch Engine.

Remarks

To use this API, create a reference in your project to dtSearchNetAPI2.dll (.NET 2.0 and later) or dtSearchNetApi.dll (.NET 1.1 only). 

dtSearchNetApi.dll and dtSearchNetApi2.dll provide a .NET wrapper around the dtSearch Engine DLL (dten600.dll) that actually implements indexing and searching. Therefore, dten600.dll must either be on the system PATH, or it must be in the same folder where dtSearchNetApi.dll is located. In ASP.NET applications, dten600.dll must be on the system PATH because when ASP.NET applications execute from a temporary folder, .NET will not copy dten600.dll to the temporary folder along with other project references. 

Source code to dtSearchNetAPI.dll and dtSearchNetApi2.dll is included with the dtSearch Engine as Visual C++ project files, here: 

C:\Program Files\dtSearch Developer\examples\cpp\dtSearchNetApi 

C:\Program Files\dtSearch Developer\examples\cpp\dtSearchNetApi2 

IDisposable

When using the dtSearch Engine API, it is essential to use the IDisposable pattern with all API objects except JobErrorInfo. Otherwise, the .NET garbage collector may take a long time to free memory used by potentially large objects such as SearchResults, resulting in memory depletion in long-running applications. In C# code, use a "using" clause with dtSearch Engine API objects, and in other code call Dispose() when you are done with an object.

Samples

For sample applications, see these folders under C:\Program Files\dtSearch Developer\examples:

C# (.NET 1.1) 
cs 
C# (.NET 2.0 and later) 
cs2 
VB.NET (.NET 1.1) 
vb.net 
VB.NET (.NET 2.0 and later) 
vb.net2 
Classes
Interface for the dataSourceToIndex member of IndexJob, for indexing non-file data sources such as databases.  
Internal Base class for dtSearch.Engine objects that implement IDisposable.  
Converts files to HTML, RTF, or text, optionally marking hits with caller-supplied tags.  
An index cache keeps a pool of indexes open for faster searching  
Information about a document being indexed (part of IndexProgressInfo)  
Information about the current state of an index  
Create or update indexes  
State of an index update  
Records error messages after an IndexJob, SearchJob, FileConverter, etc.  
List words, fields, or filenames in an index to a file or to a memory buffer  
Base class for SearchJob, IndexJob, FileConverter, etc.  
Sets indexing and searching option settings.  
Information about a document being searched in an unindexed search (part of SearchProgressInfo)  
Filters a search to allow only selected documents from an index to be returned.  
Use to search indexes or to search without an index.  
State of an index update  
Generates a report showing each hit in one or more documents, with a specified amount of context  
List of documents retrieved in a search.  
Information about a document retrieved in a search.  
dtSearch Engine version information, diagnostic logging, and utility functions.  
WordListBuilder provides a way to list words, field names, or field values in an index  
Enumerations
Values that CheckForAbort (IIndexStatusHandler or ISearchStatusHandler) can return to indicate whether a job should continue.  
Values for dtsOptions.binaryFiles (C++), Options.BinaryFiles (.NET), and Options.setBinaryFiles (Java). See Filtering Options
Flags for dtsConvertJob2 (C++) and FileConverter (.NET, Java) 
Flags for Server.ConvertPath  
Flags for Server.SetDebugLogging  
Error codes are returned after a job completes. In the C++ API, use the dtsErrorInfo attached to a job to access error codes. In .NET, use the Errors property of the job. In Java, use getErrors(). 
Control indexing of meta-data associated with documents 
Values for dtsFileInfo and dtsIndexProgressInfo.fileFlags (C++) and IndexFileInfo (.NET, Java) 
Values for Options.Hyphens, specifying how hyphens should be indexed.  
Values for indexing flags in dtsIndexJob 
Describes the current status of the indexer
 
Flags used in dtsListIndexJob (C++) and ListIndexJob (.NET, Java) 
MessageCodes are sent to callback functions during an index or search to update the caller on the status of the job. 
Output file formats for conversion of documents and generation of search reports  
Flags for dtsSearchReportJob (C++) and SearchReportJob (Java, .NET) 
Flags to control searches 
Flags to control the sorting of search results. 
Values for Options.TextFlags (.NET), Options.setTextFlags() (Java), and dtsOptions.textFlags (C++) 
File type identifiers 
Values for Options.UnicodeFilterFlags (.NET) or dtsOptions.unicodeFilterFlags (C++) or Options.setUnicodeFilterFlags(java). 
Interfaces
Provides a way for the caller to receive updates as the IndexJob progresses.  
Interface for SearchJob.StatusHandler.  
Interface for SearchJob.StatusHandler, with additional OnProgressUpdate callback.  
See Also
You are here: dtSearch::Engine Namespace
Copyright (c) 1998-2009 dtSearch Corp. All rights reserved.