Last Reviewed: April 27, 2009

Article: DTS0172

Applies to: dtSearch Engine 6, 7

Native .NET Interface

The dtSearch Engine includes a native .NET interface implemented in dtSearchNetApi.dll (.NET 1.1) and dtSearchNetApi2.dll (.NET 2.0 and later).   

The dtSearch.Engine namespace includes the indexing, searching, and hit-highlighting API.  The dtSearch.Spider namespace includes classes for indexing web sites.  The .NET API is available in 64-bit and 32-bit versions.

For API documentation, see:

dtSearch Text Retrieval Engine .NET API Reference (.NET 2.0 or later)

dtSearch Text Retrieval Engine .NET 1.1 API Reference

After installing the dtSearch Engine, sample .NET applications can be found in these folders:

C:\Program Files\dtSearch Developer\examples\asp.net2

C:\Program Files\dtSearch Developer\examples\cs2

C:\Program Files\dtSearch Developer\examples\vb.net2

Sample .NET 1.1 applications can be found in these folders:

C:\Program Files\dtSearch Developer\examples\asp.net

C:\Program Files\dtSearch Developer\examples\cs

C:\Program Files\dtSearch Developer\examples\vb.net

 

The dtSearchNetApi2.dll that is included with the dtSearch Engine is compiled without a strong name.  If you need a version built with a strong name, you can use the source code to dtSearchNetApi2.dll, which is installed here:

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

Using the source code and Visual Studio.NET 2005, you can recompile it with any options or modifications you want, including addition of a strong name.

See Also

Troubleshooting: BadImageFormatException in .NET applications

Troubleshooting: System.IO.FileNotFoundException in .NET applications

How to use the 64-bit version of the dtSearch Engine