Hello, I have a solr search server running and in at least one very rare
case, I'm seeing a strange scoring result.  The following example will cause
solr to return a score of "Infinity":

Query: {!dismax tie=0.1 qf=lyrics pf=lyrics ps=5}drugs the drugs

Here is the debug output:
Infinity = (MATCH) sum of:
  0.0758089 = (MATCH) sum of:
    0.03790445 = (MATCH) weight(lyrics:drug in 0), product of:
      0.40824828 = queryWeight(lyrics:drug), product of:
        0.30685282 = idf(docFreq=1, maxDocs=1)
        1.3304368 = queryNorm
      0.09284656 = (MATCH) fieldWeight(lyrics:drug in 0), product of:
        3.8729835 = tf(termFreq(lyrics:drug)=15)
        0.30685282 = idf(docFreq=1, maxDocs=1)
        0.078125 = fieldNorm(field=lyrics, doc=0)
    0.03790445 = (MATCH) weight(lyrics:drug in 0), product of:
      0.40824828 = queryWeight(lyrics:drug), product of:
        0.30685282 = idf(docFreq=1, maxDocs=1)
        1.3304368 = queryNorm
      0.09284656 = (MATCH) fieldWeight(lyrics:drug in 0), product of:
        3.8729835 = tf(termFreq(lyrics:drug)=15)
        0.30685282 = idf(docFreq=1, maxDocs=1)
        0.078125 = fieldNorm(field=lyrics, doc=0)
  Infinity = (MATCH) weight(lyrics:"drug ? drug"~5 in 0), product of:
    0.81649655 = queryWeight(lyrics:"drug ? drug"~5), product of:
      0.61370564 = idf(lyrics: drug=1 drug=1)
      1.3304368 = queryNorm
    Infinity = fieldWeight(lyrics:"drug drug" in 0), product of:
      Infinity = tf(phraseFreq=Infinity)
      0.61370564 = idf(lyrics: drug=1 drug=1)
      0.078125 = fieldNorm(field=lyrics, doc=0)

Here is the text of the 'lyrics' field entry that gives the Infinity score:
http://pastebin.com/JcN5hM8c



There seems to be some kind of issue with the search query having the
two consecutive words, a reserved word (the) in the middle.  To me it looks
like a bug but I wanted to check here first.  I'm seeing this in both 1.4.1
and 3.1.0.

Regards,
Chris

Reply via email to