You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our project we are not setting user_weight manually anywhere that I can see. But if I run this I can see a weight of mostly 1's and 2's: select *, weight() from article_core where match('beatl') OPTION ranker=expr('sum(user_weight)');
Then if I run this I get 2's and 3's: select *, weight() from person_core where match('beatl') OPTION ranker=expr('sum(user_weight)')
I think this explains a mysterious bias where person records are being ranked quite a lot higher than article records.
Does ThinkingSphinx set user_weight for each document somehow? I've searched the whole project for user_weight and I don't see it being set anywhere.
I assume the default ranker is being used to calculate the final weight: SPH_RANK_PROXIMITY_BM25 = sum(lcs*user_weight)*1000+bm25
The text was updated successfully, but these errors were encountered:
But I don't see this being set in any of my index files, the only property I'm setting is set_property delta: true. So why are the user_weight values different for each document then?
user_weight (integer), the user specified per-field weight (refer to SetFieldWeights() in SphinxAPI and OPTION field_weights in SphinxQL respectively). The weights default to 1 if not specified explicitly.
In our project we are not setting
user_weight
manually anywhere that I can see. But if I run this I can see a weight of mostly 1's and 2's:select *, weight() from article_core where match('beatl') OPTION ranker=expr('sum(user_weight)');
Then if I run this I get 2's and 3's:
select *, weight() from person_core where match('beatl') OPTION ranker=expr('sum(user_weight)')
I think this explains a mysterious bias where person records are being ranked quite a lot higher than article records.
Does ThinkingSphinx set
user_weight
for each document somehow? I've searched the whole project foruser_weight
and I don't see it being set anywhere.I assume the default ranker is being used to calculate the final weight:
SPH_RANK_PROXIMITY_BM25 = sum(lcs*user_weight)*1000+bm25
The text was updated successfully, but these errors were encountered: