Sunday, April 1, 2018

FW: Score different for different documents containing same value

-----Original Message-----
From: bbarani [mailto:bbarani@gmail.com]
Sent: 27 March 2018 00:09
To: solr-user@lucene.apache.org
Subject: Score different for different documents containing same value

Hi,

I was trying to query a field that has specific term in it and to my
surprise the score was different for different documents even though the
field I am searching for contained the same exact terms in all the
documents.

Any idea when this issue would come up?

*Note:* All the documents contained the value 'iphone brown case' in query_t
field and I am on SOLR 6.1

*Query:*
select?q=iphone+brown+case&omitHeader=false&fl=score,query_t,timestamp_tdt&s
ort=score%20desc&wt=xml&qf=query_t&defType=edismax&mm=100%25&rows=5

<response>
<lst name="responseHeader">
<bool name="zkConnected">true</bool>
<int name="status">0</int>
<int name="QTime">9</int>
<lst name="params">
<str name="mm">100%</str>
<str name="q">iphone brown case</str>
<str name="defType">edismax</str>
<str name="omitHeader">false</str>
<str name="qf">query_t</str>
<str name="fl">score,query_t,timestamp_tdt</str>
<str name="callback">getSuggestions</str>
<str name="sort">score desc</str>
<str name="rows">5</str>
<str name="wt">xml</str>
<str name="_">1521045725381</str>
</lst>
</lst>
<result name="response" numFound="4" start="0" maxScore="6.306856"> <doc>
<arr name="query_t"> <str>iphone brown case</str> </arr> <date
name="timestamp_tdt">2018-03-26T13:40:14.690Z</date>
<float name="score">*6.306856*</float>
</doc>
<doc>
<arr name="query_t">
<str>iphone brown case</str>
</arr>
<date name="timestamp_tdt">2018-03-26T13:40:14.690Z</date>
<float name="score">*4.8550515*</float>
</doc>
<doc>
<arr name="query_t">
<str>iphone brown case</str>
</arr>
<date name="timestamp_tdt">2018-03-26T13:40:14.690Z</date>
<float name="score">*4.8550515*</float>
</doc>
<doc>
<arr name="query_t">
<str>iphone brown case</str>
</arr>
<date name="timestamp_tdt">2018-03-26T13:40:14.690Z</date>
<float name="score">*4.8550515*</float>
</doc>
</result>
</response>



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

No comments:

Post a Comment