lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Scores equality
Date Sun, 13 Jun 2010 14:05:02 GMT
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:

> Hi All,
> 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,
> Naama

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message