lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Sokolov <msoko...@safaribooksonline.com>
Subject Re: Document boosting and native ordering of results
Date Tue, 27 Aug 2013 01:15:16 GMT
I had been planning something similar to what Michael was used to: 
creating a regular numeric field (call it "weight", say) with a rank 
value, applying a field boost to that field that is equal to the rank 
value, and then querying with weight:[* TO *] as a term, thinking that 
would end up bringing in the rank to the scoring calculation.  Is that 
not going to work?  Is it necessary or better to use DocValues with a 
FunctionQuery?

Thanks

Mike

On 8/26/13 1:37 PM, Uwe Schindler wrote:
> Hi,
>
> This is still possible (in reality it was broken in Lucene version prior 4.0 if you refer
to Document.setBoost() -> see changelog/MIGRATE.txt): You have to add an additional DocValues
field (a long or double numeric) and use a FunctionQuery / CustomScoreQuery to modify the
score based on this value.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: Michael van Rooyen [mailto:michael@loot.co.za]
>> Sent: Monday, August 26, 2013 6:39 PM
>> To: java-user@lucene.apache.org
>> Subject: Re: Document boosting and native ordering of results
>>
>> Not sure if there are any thoughts on this.
>>
>> It definitely makes sense to assign a rank to each document in the index, so
>> that all else being equal, documents are returned in order of rank.  This is
>> exactly what the page rank is in Google's index, and Google would be lost
>> without it.  This used to be possible in old versions of Lucene, but no longer.
>> Should this be posted as a feature request to the developers?
>>
>> Thanks,
>> Michael.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>


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