F
F
farafontov2011-08-29 22:29:05
Sphinx
farafontov, 2011-08-29 22:29:05

sphinx search by part of a word

I'm trying to connect the sphinx to autocomplete, but it only searches for whole words and doesn't find "lenovo" for "leno"

How to set up search by part of a word?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sergeyvolobuev, 2011-08-30
@sergeyvolobuev

and did it right.

S
Sergey Naumov, 2015-03-02
@svcomplex

enable prefix or infix in index settings (directives min_prefix_len or min_infix_len respectively)
and then search like this:
(@* leno*)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question