Home  //  Play

Manticore Search - Installation on Ubuntu 18

Difficulty: Beginner
Estimated Time: 5 minutes

Manticoresearch - installation on Ubuntu 18

In this tutorial you will learn how to install Manticore Search on Ubuntu 18.

Manticore Search - Installation on Ubuntu 18

Step 1 of 3

Step 1

Downloading Manticore package

First of all, let's download the Manticore package for Ubuntu 18 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/3.0.2/manticore_3.0.2-190531-e3d296ef-release-stemmer.bionic_amd64-bin.deb

And install it on the system

dpkg -i manticore_3.0.2-190531-e3d296ef-release-stemmer.bionic_amd64-bin.deb

Step 2

Running Manticore

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

nano /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


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 WHERE MATCH('second query');