Thanks Uwe! I hadn't investigated DocValues fields, but they look like
an exciting addition to Lucene and definitely what we need. The
FunctionQuery / CustomScoreQuery would be a great solution, but there
doesn't seem to be a ValueSource dedicated to DocValues fields and all
the field-based value-sources I could find are based on access via the
field cache. One of the purposes of the DocValues fields (in my
understanding) is to bypass the need for using the field cache. Am I
missing something?
On 2013/08/26 07: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: 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
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org