|| at Jun 13, 2010 at 3:54 pm
Last I knew, ties were decided by the internal document id.
you can control this any way you want, just include a Sort
object in your query with multiple SortFields. Two pre-defined
SortFields types you can use are FIELD_SCORE and
FIELD_DOC and you can add any number of other fields to sort by,
see the API for Sort and SortField...
The default is pretty much equivalent to a Sort object with two
SortFields, the two mentioned above...
On Sun, Jun 13, 2010 at 9:38 AM, Naama Kraus wrote:
I wanted to ask regarding search results scores equality:
In case two documents get an equal score - how does Lucene "break" equality
I.e. by which criteria one document would be ranked before another ? Random
? Indexing time ? Anything else ?
Can I control this one somehow ?
(I am using Lucene 3).
Thanks for the input,