





























A Blog Dedicated to Sphinx Search And The Steps to implement SphinxSE on MySQL Database
UnZip the Zip File and go to the sphinx
subdirectory:
$ tar xzvf sphinx-0.9.8.tar.gz
$ cd sphinx
Run the configuration program:
$ ./configure
There's a number of options to configure. The complete listing may be obtained by using --help
switch. The most important ones are:
--prefix
, which specifies where to install Sphinx; such as --prefix=/usr/local/sphinx
(all of the examples use this prefix)--with-mysql
, which specifies where to look for MySQL include and library files, if auto-detection fails;--with-pgsql
, which specifies where to look for PostgreSQL include and library files.
Build the binaries:
$ make
Install the binaries in the directory of your choice: (defaults to /usr/local/bin/
on *nix systems, but is overridden with configure --prefix
)
$ make install
Extract .zip file you have downloaded - sphinx-0.9.8-win32.zip
(or sphinx-0.9.8-win32-pgsql.zip
if you need PostgresSQL support as well.)
For the remainder of this guide, we will assume that the folders are unzipped into C:\Sphinx
, such that searchd.exe
can be found in C:\Sphinx\bin\searchd.exe
. If you decide to use any different location for the folders or configuration file, please change it accordingly.
Install the searchd
system as a Windows service:
C:\Sphinx> C:\Sphinx\searchd --install --config C:\Sphinx\sphinx.conf --servicename SphinxSearch
The searchd
service will now be listed in the Services panel within the Management Console, available from Administrative Tools. It will not have been started, as you will need to configure it and build your indexes with indexer
before starting the service.
Sphinx is available through its official Web site at http://www.sphinxsearch.com/.
Currently, Sphinx distribution tarball includes the following software:
Indexer: utility which creates fulltext indexesSearch
: a simple command-line (CLI) test utility which searches through fulltext indexesSearchd:
a daemon which enables external software (eg. Web applications) to search through fulltext indexessphinxapi
: a set of searchd client API libraries for popular Web scripting languages (PHP, Python, Perl, Ruby).spelldump
: a simple command-line tool to extract the items from an ispell
or MySpell
(as bundled with OpenOffice) format dictionary to help customize your index, for use withindextool
: an utility to dump miscellaneous debug information about the index, added in version 0.9.9-rc2.