You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by lajkonik86 <th...@gmail.com> on 2008/11/12 11:55:00 UTC

RE: FW: Score customization


I effectively need to use a multiplication in the sorting of the items.
Something like score*popularity.
It seems the only way to do this is to use a bf parameter.
However how do you use bf in combination with the standard requestHandler?


hossman wrote:
> 
> 
> : Now I need to know whether the FunctionQuery result is considered during 
> : the results sorting. That is, are search results sorted according to the 
> : sum of the similarity and the FunctionQuery value or according to 
> : similarity only?
> 
> a function query in a larger query contributes to the score just like any 
> other clause ... if you sort by score, you are sorting by the *whole* 
> score ... if you sort by some other field then the *whole* score is 
> irrelevant.
> 
> 
> 
> -Hoss
> 
> 
> 


-- 
View this message in context: http://www.nabble.com/Score-customization-tp13404845p20458084.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: FW: Score customization

Posted by Chris Hostetter <ho...@fucit.org>.
: I effectively need to use a multiplication in the sorting of the items.
: Something like score*popularity.
: It seems the only way to do this is to use a bf parameter.
: However how do you use bf in combination with the standard requestHandler?

functions are understood by the standard query parser using the 
_val_:"func(...)" hack...

	http://wiki.apache.org/solr/SolrQuerySyntax


-Hoss


RE: FW: Score customization

Posted by "Nguyen, Joe" <jn...@automotive.com>.
You could use function query with standardRequestHandler to influence
the final score and sort result by score.  If you want to control how
much the function query would affect the original score, you could use
the linear function.

-----Original Message-----
From: lajkonik86 [mailto:thierryschellenbach@gmail.com] 
Sent: Wednesday, November 12, 2008 2:55 Joe
To: solr-user@lucene.apache.org
Subject: RE: FW: Score customization



I effectively need to use a multiplication in the sorting of the items.
Something like score*popularity.
It seems the only way to do this is to use a bf parameter.
However how do you use bf in combination with the standard
requestHandler?


hossman wrote:
> 
> 
> : Now I need to know whether the FunctionQuery result is considered 
> during
> : the results sorting. That is, are search results sorted according to

> the
> : sum of the similarity and the FunctionQuery value or according to
> : similarity only?
> 
> a function query in a larger query contributes to the score just like 
> any other clause ... if you sort by score, you are sorting by the 
> *whole* score ... if you sort by some other field then the *whole* 
> score is irrelevant.
> 
> 
> 
> -Hoss
> 
> 
> 


--
View this message in context:
http://www.nabble.com/Score-customization-tp13404845p20458084.html
Sent from the Solr - User mailing list archive at Nabble.com.