Table of Contents

Install and Configure Sphinx

These instructions apply to a SUSE Linux installation of CATS where the CATS package has been installed in the directory /srv/www/htdocs/cats. If your installation differs, you will need to make appropriate adjustments to the paths referenced in this documentation.

Basic Requirements

  1. Installed and operational CATS system
  2. functional cron
  3. LSB compatible init.d for run control

What it Does

The Sphinx package consists of two primary parts, the indexer that creates the search indexes and is run periodically to rebuild those indexes, and the searchd daemon that handles the queries from the sphinxapi.php library.

The CATS integration design calls for a primary index, cats, that is rebuilt once per day via cron.daily. This once per day rebuild picks up all candidates/resumes in the database and completely reindexes the text resume, key skills, and candidate's first and last names. Additionally, it resets the sph_counter to a high water mark.

A second delta index, catsdelta, handles additions to the database during the business day via a cron script that rebuilds only the secondary delta index based on the high water mark set at the prior run of the primary index. It is evisioned that this script would run every 20 or 30 minutes during the business day to keep that delta index up to date with recent additions to the database.

Installation Instructions

Download Sphinx

Copy sphinxapi.php

Create Indexer Cron Script

Create Searchd init.d Script

Create sphinx.conf

Add sph_counter to CATS database

Try creating your index

Start the Searchd Daemon

Test Search from Commandline

Setup Cron for Regular Updates