Centos 7
Linux 3.10.0-229.14.1.el7.x86_64
Sphinx 2.1.5-id64-release (rel21-r4508)
При обращении к ULR
domkaminov.ru/_sphinx/?q=supra пишет:
searchd error: client version is higher than daemon version (client is v.1.30, daemon is v.1.29)
Но если в консоль написать
search supra
то все работает
using config file '/etc/sphinx/sphinx.conf'...
index 'test1': query 'supra ': returned 294 matches of 294 total in 0.000 sec
displaying matches:
1. document=1754, weight=3659, id_old=Thu Jan 1 05:00:37 1970
2. document=1757, weight=3659, id_old=Thu Jan 1 05:00:35 1970
...
На всякий случай приведу конфиг сфинкса
#
# Minimal Sphinx configuration sample (clean, simple, functional)
#
source src1
{
type = mysql
sql_host = localhost
sql_user = xxx
sql_pass = xxx
sql_db = xxx
sql_port = 3306 # optional, default is 3306
sql_query = SELECT id_product, id_old, model, UNIX_TIMESTAMP(create_time) AS date_added, seo_name, full_description FROM products
sql_attr_uint = id_product
sql_attr_timestamp = id_product
}
index test1
{
source = src1
path = /var/lib/sphinx/test1
docinfo = extern
charset_type = sbcs
}
indexer
{
mem_limit = 32M
}
searchd
{
listen = 127.0.0.1:3312
log = /var/log/sphinx/searchd.log
query_log = /var/log/sphinx/query.log
read_timeout = 5
max_children = 30
pid_file = /etc/init.d/sphinxsearch
max_matches = 1000
seamless_rotate = 1
preopen_indexes = 1
unlink_old = 1
workers = threads # for RT to work
binlog_path = /var/lib/sphinx
}