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 "Natarajan, Rajeswari" <ra...@sap.com> on 2017/07/27 07:21:22 UTC

score field returns NaN with distributed Search after Upgrade from 4.5 to 4.10

Hi  All,

We are upgrading from Solr/Lucene 4.5.1 to 4.10.4. When testing we found the below issue.

The score field in  the query response for a distributed query results in NaN. This happens if the indexes were created in 4.5 and the query is received in 4.10.1.

Also the score in the explain statement with the debugQuery on is same with 4.5 or 4.10.  

This issue does not happen for queries  which involves single shard. Has anyone faced this issue or know the cause/remedy of this behavior.


Thank you,
Rajeswari 


Query is just Q=*:*&fl=score ,with the correct URL

Part of the Output
<result name="response" numFound="200" start="0">
<doc>
    <float name="score">NaN</float></doc>
  <doc>
</result>

<str name="QParser">LuceneQParser</str>
  <lst name="explain">
    <str name="PR^test.abc.indexadapter^en_US^4^13^ARIBA-000002-docid01-0-ABC-000002-docid01-0-ABC-000002-docid01-0">
0.003922721 = (MATCH) product of:
  0.07845442 = (MATCH) sum of:
    0.07845442 = (MATCH) weight(arches_id:PR^test.abcindexadapter^en_US^4^13^ABC-000002-docid01-0-ABC-000002-docid01-0-ABC000002-docid01-0 in 0) [ABCSimilarity], result of:
      0.07845442 = score(doc=0,freq=1.0 = termFreq=1.0
), product of:
        0.22360682 = queryWeight, product of:
          4.912023 = idf(docFreq=1, maxDocs=100)
          0.045522347 = queryNorm
        0.35085878 = fieldWeight in 0, product of:
          0.07142857 = (tf = 1.0, Boost = 0, Boost (Binary) = 0, normValue = 0.0, bmf = 50)
            1.0 = termFreq=1.0
          4.912023 = idf(docFreq=1, maxDocs=100)
  0.05 = coord(1/20)
</str>