Centos 7
Linux 3.10.0-229.14.1.el7.x86_64
Sphinx 2.1.5-id64-release (rel21-r4508)
На английском ищет, на русском нет =)
Прочитал много формумов, попробовал кучу вариаций charset_table и в разных блоках, не помогает.
Конфиг
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_pre = SET NAMES UTF8
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
{
morphology = stem_enru
source = src1
path = /var/lib/sphinx/test1
docinfo = extern
charset_type = sbcs
charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F
}
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
}
Заранее спасибо!