lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: How to pass additional information into Similarity.scorePayload(...)
Date Wed, 13 Feb 2008 11:53:48 GMT
Are you writing your own Query?  What kind of info did you have in  
mind?  scorePayload is called from the query scoring class, so I am  
not sure how you would pass in info to it unless you were writing your  
own Query class.

-Grant

On Feb 13, 2008, at 4:31 AM, Cedric Ho wrote:

> Hi all,
>
> My problem is I have some additional weighting info that come with
> each search. And I need to take both the weighting info and the
> payload to calculate scores.
>
> So how do I access the weighting info in
> Similarity.scorePayload(String,byte[],int,int) ? I've thought about
> using a ThreadLocal, but this seems like a hack, are there better
> options ?
>
>
> Regards,
> Cedric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message