Answer the question
In order to leave comments, you need to log in
How can I set up the index and search to just look for the exact substring like "%test%"?
It is necessary that the sphinx simply works like like in mysql and looks for an occurrence of an exactly given string, up to spaces, periods, etc.
For example:
where field like "%тостер нереально крутой site!!1,.%"
Answer the question
In order to leave comments, you need to log in
Set index settings:
min_word_len = 1
min_infix_len=2 # минимум 2
charset_table = 0..9, A..Z->a..z, _, a..z, \
U+410..U+42F->U+430..U+44F, U+430..U+44F, U+401->U+451, U+451, \
U+002D, U+003A, U+002B, U+0028, U+0029
# А..Я->а..я, а..я, Ё->ё, ё,
# -, :, +, (, )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question