M
M
Madion2016-04-18 08:18:01
Sphinx
Madion, 2016-04-18 08:18:01

How to enable sphinxsearch plural search?

Hello.
Sphinx is connected to the site with the following config:

index products
{
    source			= products
    path			= /var/lib/sphinxsearch/data/products
    morphology = stem_ru
    enable_star = 1
    min_word_len = 2
    dict=keywords
    min_prefix_len = 2
    html_strip = 1
    index_exact_words = 1
    expand_keywords = 1
    mlock = 0
    charset_type        = utf-8
    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+0435, U+451->U+0435
}

How to enable search by plural word?
Those. a search query: pools would return the same results as a search query: pool
Or
boat = boats
Fishing rod = Fishing rods
, etc.
Now updated to 2.1.2, added to the config:
morphology = lemmatize_ru_all
and
lemmatizer_base = /var/lib/sphinxsearch/dict/
here: /var/lib/sphinxsearch/dict/ - the ru.pak file is located
Still does not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2016-04-18
@opium

endings perfectly rejects stemming
if you are looking for a pool, you will find pools.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question