Answer the question
In order to leave comments, you need to log in
How does the BM25 ranker work in sphinx?
There are three documents with a title field: a blue sofa, a red sofa, and a green sofa. Do a search for the word "sofa".
SELECT item, weight() AS rank FROM test WHERE match('@(title) диван') ORDER BY rank DESC OPTION ranker = BM25;
Answer the question
In order to leave comments, you need to log in
1. The value of the weight of the found document is multiplied by 1000 and rounded off (0.319*, for example, becomes 319)
2. `ranker = BM25` takes into account the weight of the fields in fact. By default, each field has 1, but it is also multiplied by 1000.
3. Both numbers are summed up, it turns out: 1000*1 + 0.319*1000 = 1319
read the doc there everything is described in some detail and you can immediately understand where more than 1000 values come from
sphinxsearch.com/docs/current/formulas-for-builtin...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question