Re: How to get similarity score between 0 and 1 not relative score

2013-11-01 Thread Peter Keegan
There's another use case for scaling the score. Suppose I want to compute a custom score based on the weighted sum of: - product(0.75, relevance score) - product(0.25, value from another field) For this to work, both fields must have values between 0-1, for example. Toby's example using the scale

Re: How to get similarity score between 0 and 1 not relative score

2013-10-31 Thread sushil sharma
Thanks, Anshum. That really helps. Now my question is   Our mid to long term vision is to automate the searches and send results to users which have higher score. For e.g. records with score higher than 90% or so, we would like to include in a report and send across to users. But since the score

Re: How to get similarity score between 0 and 1 not relative score

2013-10-31 Thread Toby Lazar
I think you are looking for something like this, though you can omit the fq section: http://localhost:8983/solr/collection/select?abc=text:bob&q={!func}scale(product(query($abc),1),0,1)&fq={! frange l=0.9}$q Also, I don't understand all the fuss about normalized scores. In the linked example, I

Re: How to get similarity score between 0 and 1 not relative score

2013-10-30 Thread Anshum Gupta
Hi Susheel, Have a look at this: http://wiki.apache.org/lucene-java/ScoresAsPercentages You may really want to reconsider doing that. On Thu, Oct 31, 2013 at 9:41 AM, sushil sharma wrote: > Hi, > > We have a requirement where user would like to see a score (between 0 to > 1) which can tell h