S
S
stanlee2015-03-15 17:10:44
Sphinx
stanlee, 2015-03-15 17:10:44

Why doesn't sphinx search in 1251 encoding?

there are two servers
on one freebsd and sphinx 2.1.9
settings are used

sql_query_pre = SET NAMES cp1251
...
charset_type = sbcs
charset_table = 0..9, A..Z->a..z, _, a..z, U+A8->U+B8, U+B8, U+C0..U+DF->U+E0..U+FF, U+E0..U+FF

on other
centos and sphinx 2.2.8
settings are used
sql_query_pre = SET NAMES cp1251
...
charset_table = 0..9, _, english, russian

I tried it with the old version of charset_table
on the first one, the search works both in en and ru;
on the second one, only in en
it is clear that the version is newer and something has changed, but I don’t understand what.
Tell me how to achieve a search in the Russian version.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Yushkevich, 2016-10-27
@yushkevichv

Since version 2.2.2 Sphinx only supports UTF-8.
The source is not original, but there is no reason not to believe:
take.ms/sUmUJ

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question