Webboard: Wrong score when UserScore gets 0 and UserScoreFactor is set

[email protected]
Newsgroups gmane.comp.web.mnogosearch.general
Message-ID <[email protected]>
Author: Amar Bouchibane
Email: 
Message:
I use "UserScore" in combination with "UserScoreFactor" which works great in general.

But if the UserScore gets "0" (which is a legit value) I get a score of 8363.722% (e.g.) for every result. This doesn't happen when I don't use "UserScoreFactor" at all, or set "UserScoreFactor" to "0".



I can reproduce this with mnoGoSearch-php-lite v.3.3.5. Here the UserScore will be forced to "0" which doesn't make sense. This is only to show this behaviour...



$us = "SELECT m.rec_id AS rec_id, 0 FROM ...";

$res = Udm_Set_Agent_Param_Ex($udm_agent, 'UserScore myrating "' . $us . '"');

$res = Udm_Set_Agent_Param_Ex($udm_agent, 'ReplaceVar us myrating');

$res = Udm_Set_Agent_Param_Ex($udm_agent, 'UserScoreFactor', '165');



Test environment: SuSE Enterprise Linux, mnoGoSearch 3.3.11 (occurs with 3.3.9 also)



Is there any workaround?



best regards,

Amar

Reply: <http://www.mnogosearch.org/board/message.php?id=21298>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.