Tutorials :

Install and Configure Apache Solr on CentOS 7

How to Install and Configure Sphinx Search on CentOS 7