Close
dtSearch .NET Standard API 2026.01
dtSearch .NET Standard API

c>dtSearchNetStdApi.dll provides a .NET Standard API for accessing the dtSearch Text Retrieval Engine.

dtSearchNetStdApi.dll is a .NET wrapper for the dtSearch Text Retrieval Engine. To use this API in a .NET project:

  • Add dtSearchNetStdApi.dll as a reference.
  • Include the appropriate native library for each platform you intend to support (see below).

For overview topics covering indexing, searching, the dtSearch query language, etc., see <xref target="Overviews" />.

.NET Standard

.NET Standard defines a common set of .NET APIs across all .NET platforms. For more information, see the External linkPlatform compatibility matrix.

Native Libraries

The dtSearch .NET Standard API consists of two components: 

1. dtSearchNetStdApi.dll (cross-platform) 

2. A platform-specific dynamic library:

  • dtSearchEngine.dll (Windows)
  • libdtSearchEngine.so (Linux)
  • libdtSearchEngine.dylib (macOS)

dtSearchNetStdApi.dll is identical across platforms and uses PInvoke to call the native library. For information on adding the required native library to your project, see <xref target="Native_Libraries" text="Native Libraries" />.

IDisposable Pattern

When using the dtSearch Engine API, always apply the IDisposable pattern to all API objects except JobErrorInfo. Failure to do so may result in delayed memory release by the .NET garbage collector, especially for large objects like SearchResults, which can cause memory depletion in long-running applications.

  • In C#, use a using statement with dtSearch Engine API objects.
  • In other languages, call Dispose() when finished with an object.