Configuring single index
indexer --config /full path/sphinx.conf myindexConfiguring all indices
indexer --config /full path/sphinx.conf --allRotating single index
indexer --rotate myindexRotating all indices
indexer --rotate --allNo output on rotation
indexer --rotate --all --quietNot to display progress detail
indexer --rotate --all --noprogress
#SEARCHD
Help
searchd --helpConfiguring searchd
searchd --config /full path/sphinx.confConfiguring port
searchd --port 9313
searchd --status
Checking Status
searchd --config /full path/sphinx.conf --statusIO status
searchd --config /full path/sphinx.conf --iostatsCPU status
searchd --config /full path/sphinx.conf --cpustats
Setting PID file
searchd --config /full path/sphinx.conf --pidfile /home/myuser/sphinx.pidForcing to search specified index
searchd --index myindexStopping search process
searchd --config /full path/sphinx.conf --stopKilling all search process
killall searchd
STEPS TO DO IF SPHINX SEARCH IS NOT WORKING
1. killall searchd
2. searchd --config /full path/sphinx.conf --status
3. searchd --pidfile --config /fullpath/sphinx.conf
4. searchd --config /full path/sphinx.conf --status
5. indexer --config /full path/sphinx.conf --all
6. indexer --rotate --all
COMMAND TO SEARCH
search -i myindex -e 'test'
Search Attributes
1. Match modes (--any / --phrase / --boolean / --ext / --ext2 / --filter attr v)
2. Set Limit (--limit count)
3. Set offset value (--offset count)
4. Sort by group (--group attr)
5. Sort by ASC/DESC (--sortby clause)
6. Sort by timestamp attribute (--rsort)
With Regards,
Er.Animesh Nanda
Software Developer,
Manusis Technology Pvt. Ltd.
Bengaluru,Karnataka,INDIA.
No comments:
Post a Comment