Home  //  Play

Manticore Search - Installation on Debian 9

Difficulty: Beginner
Estimated Time: 5 minutes

Manticoresearch - installation on Debian 9

In this tutorial you will learn how to install Manticore Search on Debian 9.

Manticore Search - Installation on Debian 9

Step 1 of 3

Step 1

Downloading Manticore package

First of all, let's download the Manticore package for Debian 9 from the official repository (you can find a link to the latest package on https://manticoresearch.com/downloads/) :

wget https://github.com/manticoresoftware/manticoresearch/releases/download/2.8.1/manticore_2.8.1-190306-3684198c-release-stemmer.stretch_amd64-bin.deb

And install it on the system

dpkg -i manticore_2.8.1-190306-3684198c-release-stemmer.stretch_amd64-bin.deb

Step 2

Running Manticore

Before we start using Manticore we should edit its startup file. Open it in your text editor:

nano /etc/default/manticore

or

vi /etc/default/manticore

and set START=yes. Save the file and run Manticore service:

service manticore start

And that's it. Manticore Search is ready for work!

The default configuration file is located at /etc/sphinxsearch/sphinx.conf

It comes with an empty RT index ready to be used and a sample plain index and interfaces SphinxQL on port 9306 and native API on port 9312.

Perform queries

Now we can connect to Manticore Search and perform a couple of simple queries on our test index testrt. Let's connect to Manticore using the mysql client. Manticore Search comes with built-in support for MySQL, but requires the presence of client libraries (the package has different names, depending on Linux distribution, for more information check https://docs.manticoresearch.com/latest/html/installation.html))

mysql -P9306 -h0

Check if the index is available

SHOW TABLES;

Do simple INSERT queries:

INSERT INTO testrt VALUES(1,'Our first query','Lorem ipsum dolor sit amet',10);

INSERT INTO testrt VALUES(2,'Our second query','Eum sumo inimicus cotidieque ne',10);

And see the results by performing SELECT queries:

SELECT *,WEIGHT() FROM testrt;

SELECT *,WEIGHT() FROM testrt WHERE MATCH('second query');