lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naama Kraus <naamakr...@gmail.com>
Subject Re: Scores equality
Date Sun, 13 Jun 2010 14:09:44 GMT
Thanks a lot, this is very helpful !
Naama

On Sun, Jun 13, 2010 at 5:05 PM, Erick Erickson <erickerickson@gmail.com>wrote:

> 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...
>
> HTH
> Erick
>
> On Sun, Jun 13, 2010 at 9:38 AM, Naama Kraus <naamakraus@gmail.com> 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
> >
>

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