lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Keegan <peterlkee...@gmail.com>
Subject Re: PayloadNearQuery and AveragePayloadFunction
Date Fri, 03 Feb 2012 13:35:01 GMT
AveragPayloadFunction is just what it sounds like:
return numPayloadsSeen > 0 ? (payloadScore / numPayloadsSeen) : 1;
What values are you seeing returned from PayloadHelper.decodeFloat ?

Peter

On Fri, Feb 3, 2012 at 4:13 AM, shyama <shyamasree_saha@yahoo.com> wrote:

> Hi Peter
> I have checked payload associated with terms, and they are fine in the
> index. I was not clear enough I believe. When I say interested in class A,
> then scorePayload function returns 3 for only for class A terms. Again,
> When
> I say interested in class B, then my scorePayload function returns 3 for
> only Class B terms. These searches are done separately. I mean on the same
> index, but each time i search, I set the semantic in my Similarity class.
>
> I am actually trying to do semantic ranking of documents. Hence, lucene
> ranks those documents high, which contains query terms and also has more
> terms from that semantic class.
>
> I hope now I have make it clear, why I do not understand that score
> returned
> from AveragePayloadFunction.
>
> Hope to hear about some more explanation.
>
> Many Thanks
> Shyama
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/PayloadNearQuery-and-AveragePayloadFunction-tp3710454p3712509.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message