Answer the question
In order to leave comments, you need to log in
How to make a ranker?
Greetings.
There is a mysql table with records:
id artist title
1 Валерий Меладзе Сэра
2 Валерий Меладзе Сэра (слова Константина Меладзе)
sql_query = select id, artist, title from base
Answer the question
In order to leave comments, you need to log in
It's hard to say without the index config, but it seems to me that you have two text fields in the index - the artist and the title of the song. There is no exact match with any of them, but "common word sequences" ranks best with wlccs , and document length can be tracked using doc_word_count .
Those. the general idea is that the larger the common matching substring is, the better, plus we penalize for the length of the document.
OPTION ranker=expr('sum(wlccs*user_weight) * 100500 - doc_word_count * 42')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question