N
N
Nikolai Kokoulin2018-04-10 13:50:52
Sphinx
Nikolai Kokoulin, 2018-04-10 13:50:52

Sphinx: how to give weight to certain words?

In the text of the query, introductory words are very often found, how to set them smaller than the rest,
for example ,
the query
how to do (keyword)
and in the results above there may be an option that will entirely consist of the words how and do
, that is, the result:

как сделать как сделать как сделать как сделать как сделать как сделать как сделать  (ключевое слово) еще куча текста не имеющего отношения к ключевому слову

will be higher than
как сделать ключевое слово

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
ManticoreSearch, 2018-04-11
@Kokoulin

You can:
1) the simplest thing is to experiment with adding "how" and "make" to the list of stop words so that they are not indexed at all.
2) more difficult - experiment with your own ranking formula:
- https://docs.manticoresearch.com/latest/html/searc... - list of factors
- PACKEDFACTORS() will help you see the impact of each factor on each search result and adjust the formula

P
Puma Thailand, 2018-04-10
@opium

handles at the output already sort the result of the sphinx
or add it yourself to the search phrase how to do it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question