The dtSearch Text Retrieval Engine for Linux provides a way for C++. .NET and Java developers to incorporate dtSearch text retrieval functions into their applications for the Linux platform. No dtSearch end-user products are currently available for Linux so some C++, .NET or Java programming is needed to make any use of the Linux version.
dtSearch version 2025.01:
The dtSearch Engine for Linux is built with GCC 4.9.2 under Red Hat Enterpise Linux 6 and includes x86 and x64 versions.
dtSearch versions 2025.02 and later:
The x64 and x86 versions of the dtSearch Engine are built with GCC 4.9.2 under Red Hat Enterpise Linux 7.9.
The ARM64 version of the dtSearch Engine is built with GCC 12.2 under Red Hat EnterpriseLinux 9.6.
The Java API requires Java version 1.4.1 or later.
After installing the files using the self-extracting installer, execute the following commands to set up symbolic links in the dtsearch/bin, bin64, or arm64 folder that are needed both for C++ and Java programming.
cd /bin
./makelinks.sh
cd ../bin64
./makelinks64.sh
See the textdemo sample application, in <dtsearch>/examples/gcc/textdemo, for an example demonstrating how to build a C++ application using the dtSearch Engine.
To build and run the 64-bit version of textdemo:
cd dtsearch/examples/gcc/textdemo
make -f linux64.mak all
make -f linux64.mak run
To build and run the 32-bit version of textdemo:
cd dtsearch/examples/gcc/textdemo
make -f linux32.mak all
make -f linux32.mak run
To build and run the ARM64 version of textdemo:
cd dtsearch/examples/gcc/textdemo
make -f linux_arm64.mak all
make -f linux_arm64.mak run
Making the "all" target compiles and links the textdemo application.
Making the "run" target runs the application. (Because textdemo is dynamically linked to the dtSearch Engine library (libdtsearch.so.6.0), it will not execute unless LD_LIBRARY_PATH includes the folder where the dtSearch Engine library is located.)
For .NET Core sample code, please see the <dtsearch>/examples/NetStd folder. The readme.html file for each project will explain how to start the project using dotnet.
For API documentation, please see dtSearch .NET Standard API or the help files in the dtSearch help folder.
For Java classes and sample code, see the < dtsearch>/examples/java folder. The Java interface to the dtSearch Engine is based on the Java Native Interface (JNI). Therefore, both the Java classes and a platform-specific binary executable are needed to use it.
The Java classes are in this file:
dtsearch/examples/java/classes/dtSearchEngine.jar
This file must be on the CLASSPATH. Adding the
dtSearch examples/java/classes folder to the
CLASSPATH, or copying its contents to a folder on the
CLASSPATH, will make these classes available in
Java.
Under Linux, the binary executable is libdtsearch.so,
which must be accessed through a symbolic link named
libdtsjava.so. To run theJavaDemo sample
application:
cd dtsearch/examples/java/classes
chmod +x runJavaDemo.sh
./runJavaDemo.sh
If you get a Java "Unsatisfied Link" exception, it means that the necessary symbolic links are not set up in dtsearch/lib. To correct this:
cd dtsearch/bin64
chmod +x makelinks64.sh
./makelinks64.sh
For API documentation, please see the dtSearch help folder.
The documentation is also available online:
dtSearch Api ReferenceThank you for using the dtSearch Engine! Please let us know if you have any questions or comments.
Sales-related inquiries:
sales@dtsearch.com
1-800-IT-FINDS (1-800-483-4637)
301-263-0731; fax 301-263-0781
Technical questions:
tech@dtsearch.com
301-263-0731; fax 301-263-0781
Copyright 1995-2019 dtSearch Corporation. All rights reserved.