QWAZR Search requires a JAVA 11 SDK.
On a yum based Linux distribution (Centos, Fedora, Redhat):
yum install java-1.8.0-openjdk-headless
On a Debian based Linux distribution (Debian, Ubuntu):
apt-get install openjdk-8-jdk-headless
The latest build are available here: download.opensearchserver.com/qwazr-search
The binary is here: download.opensearchserver.com/qwazr-search/qwazr-search-1.4.0-SNAPSHOT-exec.jar
java -jar qwazr-search-1.5.0-SNAPSHOT-exec.jar
Two directories are created:
curl http://localhost:9091/
To know more bout the Web service, have a look at the JSON Web service overview
JAVA daemon are really easy to setup with systemd.
Here is an example:
useradd -g daemon -m -b /var/lib/qwazr qwazr
su - qwazr
mkdir /var/lib/qwazr/search
cd /var/lib/qwazr/search
curl -O "http://download.opensearchserver.com/qwazr-search/qwazr-search-1.5.0-SNAPSHOT-exec.jar"
Here is a working systemd init script.
You may use the name qwazr-search.service.
[Unit]
Description=QWAZR Search
[Service]
User=qwazr
Group=daemon
WorkingDirectory=/var/lib/qwazr/search
ExecStart=/usr/bin/java -XX:+UseG1GC -Djava.net.preferIPv4Stack=true qwazr-search-1.5.0-SNAPSHOT-exec.jar
Environment=LISTEN_ADDR=127.0.0.1
SuccessExitStatus=143
TimeoutStopSec=10
Restart=on-failure
RestartSec=15
[Install]
WantedBy=multi-user.target
Move this script in the appropriate directory in your Linux distribution. Use the systemctl commands.
systemctl start qwazr-search
systemctl stop qwazr-search