This API implements a .NET wrapper around the dtSearch Text Retrieval Engine. For overview topics covering indexing, searching, the dtSearch query language, etc., see the dtSearchApiRef.chm file included with the dtSearch Engine.
To use this API, create a reference in your project to one of these files:
dtSearchNetApi4.dll (.NET 4.0 and later)
dtSearchNetApi3.dll (.NET 3.5 and later)
dtSearchNetApi2.dll (.NET 2.0 and later)
dtSearchNetApi.dll (.NET 1.1 only)
Source code to dtSearchNetAPI*.dll components is included with the dtSearch Engine as Visual C++ project files, here:
C:\Program Files\dtSearch Developer\examples\cpp\dtSearchNetApi4
C:\Program Files\dtSearch Developer\examples\cpp\dtSearchNetApi3
C:\Program Files\dtSearch Developer\examples\cpp\dtSearchNetApi2
C:\Program Files\dtSearch Developer\examples\cpp\dtSearchNetApi
For information on deployment of the dtSearch .NET API, please see "Installing the dtSearch Engine with your Application" in the Overviews section.
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.
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 |
|
C# (.NET 4.0 and later) |
cs4 |
|
VB.NET (.NET 1.1) |
vb.net |
|
VB.NET (.NET 2.0 and later) |
vb.net2 |
|
VB.NET (.NET 4.0 and later) |
vb.net4 |
|
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. | |
|
ExtractionOptions (attached to a FileConvertJob) specifies how embedded images and attachments should be handled. | |
|
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 | |
|
List words, fields, or filenames in an index to a file or to a memory buffer | |
|
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 |
|
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(). | |
|
Flags to control the extraction of attachments and images using FileConverter (.NET, Java) or dtsFileConvertJob2 (C++) | |
|
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). | |
|
Values for dtsSearchJob.unindexedSearchFlags | |
|
Values for WordListBuilder.SetFlags |
|
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. |
|
Copyright (c) 1998-2012 dtSearch Corp. All rights reserved.
|