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 smanad <sm...@gmail.com> on 2013/06/27 23:25:01 UTC
Normalizing/Returning solr scores between 0 to 1
Hi,
We have a need where we would want normalized scores from score ranging
between 0 to 1 rather than a free range.
I read about it @ http://wiki.apache.org/lucene-java/ScoresAsPercentages and
seems like thats not something that is recommended.
However, is there still a way to set some config in solrconfig to make sure
scores are always between 0 to 1?
OR i will have to implement that logic in my code after I get the results
from Solr.
Any pointers will be much appreciated.
Thanks,
-M
--
View this message in context: http://lucene.472066.n3.nabble.com/Normalizing-Returning-solr-scores-between-0-to-1-tp4073797.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Normalizing/Returning solr scores between 0 to 1
Posted by Upayavira <uv...@odoko.co.uk>.
And if Solr has to spit it out, perhaps you could do that with a simple
salt transform or velocity template.
Upayavira
On Fri, Jun 28, 2013, at 12:30 AM, Learner wrote:
> Might not be useful but a work around would be to divide all scores by
> max
> score to get scores between 0 and 1.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Normalizing-Returning-solr-scores-between-0-to-1-tp4073797p4073829.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: Normalizing/Returning solr scores between 0 to 1
Posted by Learner <bb...@gmail.com>.
Might not be useful but a work around would be to divide all scores by max
score to get scores between 0 and 1.
--
View this message in context: http://lucene.472066.n3.nabble.com/Normalizing-Returning-solr-scores-between-0-to-1-tp4073797p4073829.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Normalizing/Returning solr scores between 0 to 1
Posted by Kevin Osborn <ke...@cbsi.com>.
There is no way that I am of aware of to have Solr return between 0 and a
1. Perhaps there is some way tom implement a custom Scorer, but that is
overkill and would probably have adverse affects. Instead, just normalize
it in your results. Of course, since you read the link you included, you
realize that it is no longer really a score, but basically just a feel good
measure. And that is what we do, along with some other logic.
-Kevin
On Thu, Jun 27, 2013 at 2:25 PM, smanad <sm...@gmail.com> wrote:
> Hi,
> We have a need where we would want normalized scores from score ranging
> between 0 to 1 rather than a free range.
> I read about it @ http://wiki.apache.org/lucene-java/ScoresAsPercentagesand
> seems like thats not something that is recommended.
>
> However, is there still a way to set some config in solrconfig to make sure
> scores are always between 0 to 1?
> OR i will have to implement that logic in my code after I get the results
> from Solr.
>
> Any pointers will be much appreciated.
> Thanks,
> -M
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Normalizing-Returning-solr-scores-between-0-to-1-tp4073797.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
--
*KEVIN OSBORN*
LEAD SOFTWARE ENGINEER
CNET Content Solutions
OFFICE 949.399.8714
CELL 949.310.4677 SKYPE osbornk
5 Park Plaza, Suite 600, Irvine, CA 92614
[image: CNET Content Solutions]