Hi Michael,

To make payloads to be considered in score calculation you need two more things:

1) A custom similarity 
2) A query parser that produces Payload*Query family.

This blog post can be a good start point. 
http://digitalpebble.blogspot.com/2010/08/using-payloads-with-dismaxqparser-in.html




On Monday, January 13, 2014 10:37 AM, michael.boom <my_sky...@yahoo.com> wrote:
Actually, i just checked the debugQuery output: they all have the same score:
"explain": {
      "1": "\n0.24276763 = (MATCH) weight(text:testone in 0)
[DefaultSimilarity], result of:\n  0.24276763 = fieldWeight in 0, product
of:\n    1.0 = tf(freq=1.0), with freq of:\n      1.0 = termFreq=1.0\n  
0.7768564 = idf(docFreq=4, maxDocs=4)\n    0.3125 = fieldNorm(doc=0)\n",
      "2": "\n0.24276763 = (MATCH) weight(text:testone in 1)
[DefaultSimilarity], result of:\n  0.24276763 = fieldWeight in 1, product
of:\n    1.0 = tf(freq=1.0), with freq of:\n      1.0 = termFreq=1.0\n  
0.7768564 = idf(docFreq=4, maxDocs=4)\n    0.3125 = fieldNorm(doc=1)\n",
      "3": "\n0.24276763 = (MATCH) weight(text:testone in 2)
[DefaultSimilarity], result of:\n  0.24276763 = fieldWeight in 2, product
of:\n    1.0 = tf(freq=1.0), with freq of:\n      1.0 = termFreq=1.0\n  
0.7768564 = idf(docFreq=4, maxDocs=4)\n    0.3125 = fieldNorm(doc=2)\n"
    },

No payload seems to be considered in score calculation - do i need to use a
special query handler?



-----
Thanks,
Michael
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Simple-payloads-example-not-working-tp4110998p4110999.html

Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to