D
D
Dmitry Sidorenko2015-11-03 21:36:58
Sphinx
Dmitry Sidorenko, 2015-11-03 21:36:58

Why is sphinx not looking for utf-8 in Russian?

Centos 7
Linux 3.10.0-229.14.1.el7.x86_64
Sphinx 2.1.5-id64-release (rel21-r4508) Searches
in English, not in Russian =)
helps.
config

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
}

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2015-11-04
@sidorenkoda

the standard config from rpms from the site of the sphinx holds UTF eight Russian as far as I remember

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question