install--.txt 929 Bytes
[ Install the searchd system as a Windows service ]

create pid file '@CONFDIR@/log/searchd.pid

C:\Sphinx\bin\searchd --install --config C:\Sphinx\sphinx.conf --servicename SphinxSearch

[ base command ]

Connect to server:
mysql -h 127.0.0.1  -P 9306

show tables;

SELECT * FROM test1 WHERE MATCH('my document');

[ indexer and finder ]
C:\sphinx\bin> .\indexer.exe --all --config ..\sphinx.conf --rotate --print-queries


[ LINUX ]

[ config ]
sudo nano /etc/sphinxsearch/sphinx.conf

[ INDEXER ]
sudo indexer --all --config /var/www/clients/client1/web76/web/doc/sphinx/lsphinx.conf --rotate --print-queries

[ CRON ]
@hourly /usr/bin/indexer --rotate --config /var/www/clients/client1/web76/web/doc/sphinx/lsphinx.conf --all

[ RUN SPHINX ]
sudo nano /etc/default/sphinxsearch

START=yes

sudo service sphinxsearch start

[ TEST ]
mysql -h0 -P9306

show tables;

SELECT * FROM test1 WHERE MATCH('test document'); SHOW META;