At 12:03 PM 12/28/2006, you wrote:
On 12/28/06, Tom <[EMAIL PROTECTED]> wrote:
Could you index your documents in the desired order? This is the
default sort order.
I don't think I can control document order, as documents may get
edited after creation.
If not, you can add a field that is present in all documents, and add
this as part of the query. Then you can fiddle with the index-time
field boost to alter the results (without skewing queries that have a
meaningful relevancy score as using document boosts would do).
That seems to work. Thanks!
I'll probably do it that way, but... :-)
I was looking at how I would write a modified version of
MatchAllDocsQuery that would simply return the documents boost as the
score. But I haven't really figured out Lucene scoring.
Could someone explain how one would do something like this? I'm just
trying to understand how one might do custom scoring in Lucene, so
I'm more looking for concepts than code.
Thanks!
Tom