Answer the question
In order to leave comments, you need to log in
Why does using min_hit_pos in ranking not give the desired result in sphinx?
I use ranking by expression
$sphinx->SetMatchMode(SPH_MATCH_EXTENDED2);
$sphinx->SetFieldWeights(array('name' => 100, 'valAuthor' => 20));
$sphinx->SetRankingMode(SPH_RANK_EXPR, "sum((1/(min_hit_pos)+user_weight*IF(exact_hit==1,5000*doc_word_count, 4000*doc_word_count))");
$sphinx->SetSortMode(SPH_SORT_EXPR, "IF(qty, 1, 0.1)*@weight");
Answer the question
In order to leave comments, you need to log in
Remove your ranking and search for Rome and then gradually add your ranking
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question