Terminal Terminal | Web Web
Home  //  Play

Manticore Search - Installation on CentOS 6

Difficulty: Beginner
Estimated Time: 5 minutes

Manticoresearch - installation on CentOS 6

In this tutorial you will learn how to install Manticore Search on CentOS 6.

Manticore Search - Installation on CentOS 6

Step 1 of 3

Step 1

Installation from repository

On RHEL based systems, Manticore Search can be installed using the official Manticore repository.

First we need to add the Manticore repository to the system: yum install http://repo.manticoresearch.com/manticore-repo.noarch.rpm

Then install the Manticore package:

yum install manticore

For future updates we can simply download

yum update manticore

Step 2

Running Manticore

Before we start using Manticore we should start its search daemon:

service manticore start

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

The default configuration file is located at /etc/manticoresearch/manticore.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');