You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Otis Gospodnetic (JIRA)" <ji...@apache.org> on 2015/04/09 05:03:12 UTC
[jira] [Updated] (SOLR-2867) Problem Wtih solr Score Display
[ https://issues.apache.org/jira/browse/SOLR-2867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Otis Gospodnetic updated SOLR-2867:
-----------------------------------
Labels: (was: patch)
> Problem Wtih solr Score Display
> -------------------------------
>
> Key: SOLR-2867
> URL: https://issues.apache.org/jira/browse/SOLR-2867
> Project: Solr
> Issue Type: Bug
> Components: SearchComponents - other
> Affects Versions: 3.1
> Environment: Linux and Mysql
> Reporter: Pragyanjeet Rout
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> We are firing a solr query and checking its relevancy score.
> But problem with relevancy score is that for some results the value for score is been truncated.
> Example:-I have a query as below
> http://localhost:8983/solr/mywork/select/?q=( contractLength:12 speedScore:[4 TO 7] dataScore:[2 TO *])&fq=( ( connectionType:"Cable" connectionType:"Naked")AND ( monthlyCost:[* TO *])AND ( speedScore:[4 TO *])AND ( dataScore:[2 TO *]))&version=2.2&start=0&rows=500&indent=on&sort=score desc, planType asc, monthlyCost1 asc, monthlyCost2 asc
> The below mentioned is my xml returned from solr :-
> <doc>
> <float name="score">3.6897283</float>
> <int name="contractLength">12</int>
> <int name="dataScore">3</int>
> <str name="prodid">ABC</str>
> <float name="monthlyCost">120.9</float>
> <int name="speedScore">7</int>
> </doc>
> <doc>
> <float name="score">3.689728</float>
> <int name="contractLength">12</int>
> <int name="dataScore">2</int>
> <str name="prodid">DEF</str>
> <float name="monthlyCost">49.95</float>
> <int name="speedScore">6</int>
> </doc>
> I have used the "debugQuery=true" in query and I saw solr is calculating the correct score(PSB) but somehow is it truncating the lastdigit i.e "3" from the second result.
> Because of this my ranking order gets disturbed and I get wrong results while displaying
> <str name="ABC">
> 3.6897283 = (MATCH) sum of:3.1476827 = (MATCH) weight(contractLength:€#0;#12; in 51), product of:0.92363054 = queryWeight(contractLength:€#0;#12;), product of:3.4079456 = idf(docFreq=8, maxDocs=100) 0.27102268 = queryNorm 3.4079456 = (MATCH) fieldWeight(contractLength:€#0;#12; in 51), product of:1.0 = tf(termFreq(contractLength:€#0;#12;)=1) 3.4079456 = idf(docFreq=8, maxDocs=100)
> 1.0 = fieldNorm(field=contractLength, doc=51) 0.27102268 = (MATCH) ConstantScore(speedScore:[€#0;#4; TO *]), product of:
> 1.0 = boost 0.27102268 = queryNorm 0.27102268 = (MATCH) ConstantScore(dataScore:[€#0;#2; TO *]), product of: 1.0 = boost 0.27102268 = queryNorm
> </str>
> <str name="DEF">
> 3.6897283 = (MATCH) sum of: 3.1476827 = (MATCH) weight(contractLength:€#0;#12; in 97), product of: 0.92363054 = queryWeight(contractLength:€#0;#12;), product of: 3.4079456 = idf(docFreq=8, maxDocs=100) 0.27102268 = queryNorm 3.4079456 = (MATCH) fieldWeight(contractLength:€#0;#12; in 97), product of: 1.0 = tf(termFreq(contractLength:€#0;#12;)=1) 3.4079456 = idf(docFreq=8, maxDocs=100) 1.0 = fieldNorm(field=contractLength, doc=97) 0.27102268 = (MATCH) ConstantScore(speedScore:[€#0;#4; TO *]), product of: 1.0 = boost
> 0.27102268 = queryNorm 0.27102268 = (MATCH) ConstantScore(dataScore:[€#0;#2; TO *]), product of: 1.0 = boost
> 0.27102268 = queryNorm
> </str>
> Please educate me for the above behaviour from solr.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org