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 defines a common set of .NET APIs across all .NET platforms. For more information, see the
Platform compatibility matrix.
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" />.
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.
|
Topic |
Description |
|---|---|
|
The dtSearch .NET Standard API consists of two components, dtSearchNetStdApi.dll, which is cross-platform, and a platform-specific dynamic library). This article explains how to include the correct native library in your projects. | |
|
Use the IDisposable pattern with dtSearch Engine API objects to prevent memory depletion. | |
|
The dtSearch .NET Standard API is very similar to the .NET Framework API in dtSearchNetApi4.dll, but there are some changes. | |
|
Sample applications using the .NET Standard API |