Установка и настройка Sphinx

Привет, наверное уже в 100 раз будет задан этот вопрос, но, к сожалению, поиском не смогу найти решение проблемы.

Хочется настроить нормальный поиск, но никак не выходит каменный цветочек нормальный поиск.

Что уже сделано:

Индексы на сколько я понял построены нормально:

<strong>indexer --all --rotate</strong>
Sphinx 2.0.4-release (r3135)
Copyright © 2001-2012, Andrew Aksyonoff
Copyright © 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/usr/local/etc/sphinx.conf'...
indexing index 'topicsIndex'...
collected 308 docs, 8.0 MB
collected 1126 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.6 Mhits, 100.0% done
total 308 docs, 7958382 bytes
total 1.463 sec, 5437550 bytes/sec, 210.44 docs/sec
indexing index 'commentsIndex'...
collected 0 docs, 0.0 MB
total 0 docs, 0 bytes
total 0.001 sec, 0 bytes/sec, 0.00 docs/sec
total 1747 reads, 0.004 sec, 0.9 kb/call avg, 0.0 msec/call avg
total 17 writes, 0.010 sec, 212.0 kb/call avg, 0.5 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=3353).



Стартует вроде нормально:

<strong>/usr/local/etc/rc.d/sphinxsearch start</strong>
Starting sphinxsearch.
Sphinx 2.0.4-release (r3135)
Copyright © 2001-2012, Andrew Aksyonoff
Copyright © 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/usr/local/etc/sphinx.conf'...
WARNING: compat_sphinxql_magics=1 is deprecated; please update your application and config
listening on all interfaces, port=3312
WARNING: process shared mutex unsupported, MVA update disabled ( pthread_mutexattr_setpshared, errno = 22 )
precaching index 'topicsIndex'
precaching index 'commentsIndex'                            
precached 2 indexes in 0.002 sec 


По сути /usr/local/etc/rc.d/sphinxsearch start — это ни что иное как: /usr/local/sbin/searchd --config /usr/local/etc/sphinx.conf

И вот после этого начинается самое интересное — не работает:

/usr/local/bin/search project
Sphinx 2.0.4-release (r3135)
Copyright © 2001-2012, Andrew Aksyonoff
Copyright © 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/usr/local/etc/sphinx.conf'...
index 'topicsIndex': query 'project ': returned 0 matches of 0 total in 0.000 sec

words:
1. 'project': 0 documents, 0 hits

index 'commentsIndex': query 'project ': returned 0 matches of 0 total in 0.000 sec

words:
1. 'project': 0 documents, 0 hits


При попытнке остановить пишет, что либо не может найти pid файл, хотя он реально есть:
schedulers# /usr/local/etc/rc.d/sphinxsearch stop
sphinxsearch not running? (check /var/run/sphinxsearch/searchd.pid).


В общем тупик, если кто подскажет куда копать — буду очень признателен!

0 комментариев

Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.