Answer the question
In order to leave comments, you need to log in
Why doesn't wordforms work in sphinx?
Bitrix launched a search based on sphinx.
config
index default
{
# Main settings
type = rt
path = /var/lib/sphinx/default/index
wordforms = /etc/sphinx/bx/dicts/wordforms.txt
#docinfo = inline
ondisk_attrs = 1
# Choose appropriate type of morphology to use
morphology = lemmatize_ru
blend_chars = +, U+23, *
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
# These settings are used by bitrix:search.title component
dict = keywords
min_prefix_len = 2
min_stemming_len = 2
min_word_len = 3
<тут всякое про rt индексы>
}
mysql> call keywords('стаканч','default');
+------+----------------+----------------+
| qpos | tokenized | normalized |
+------+----------------+----------------+
| 1 | стаканч | стаканч |
+------+----------------+----------------+
1 row in set (0.00 sec)
mysql> call keywords('стаканчик','default');
+------+--------------------+--------------------+
| qpos | tokenized | normalized |
+------+--------------------+--------------------+
| 1 | стаканчик | стаканчик |
+------+--------------------+--------------------+
1 row in set (0.00 sec)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question