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: BoostingTermQuery scoring
Date Thu, 06 Nov 2008 13:00:08 GMT
Not sure, but it sounds like you are interested in a higher level  
Query, kind of like the BooleanQuery, but then part of it sounds like  
it is per document, right?  Is it that you want to deal with multiple  
payloads in a document, or multiple BTQs in a bigger query?
On Nov 4, 2008, at 9:42 AM, Peter Keegan wrote:

> I'm using BoostingTermQuery to boost the score of documents with terms
> containing payloads (boost value > 1). I'd like to change the scoring
> behavior such that if a query contains multiple BoostingTermQuery  
> terms
> (either required or optional), documents containing more matching  
> terms with
> payloads always score higher than documents with fewer terms with  
> payloads.
> Currently, if one of the terms has a high IDF weight and contains a  
> boosting
> payload but no payloads on other matching terms, it may score higher  
> than
> docs with other matching terms with payloads and lower IDF.
>
> I think what I need is a way to increase the weight of a matching  
> term in
> BoostingSpanScorer.score() if 'payloadsSeen > 0', but I don't see  
> how to do
> this. Any suggestions?
>
> Thanks,
> Peter

--------------------------
Grant Ingersoll


Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ










---------------------------------------------------------------------
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