lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shyama <>
Subject Re: PayloadNearQuery and AveragePayloadFunction
Date Fri, 03 Feb 2012 16:50:14 GMT
Hi Peter
Thanks for your reply.
I guess I found the problem. 

scorePayload function is only called for query terms. Problem was, when I
was retrieving payloads for each tokens in token stream, it was return
misleading payloads due to the fact that I did not skip TermPositions that
does not belongs to current document.

I still wonder, whether AveragePayloadFunction will consider query terms for
"payload seen so far", or all terms in current field of current document. I
will check this out. In my previous testing I found, it only considers query

Thanks again.

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message