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: u...@thetaphi.de


> -----Original Message-----
> From: Michael van Rooyen [mailto:mich...@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-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org


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

Reply via email to