Presumably there is no score ordering to the hit id's lucene delivers to
a HitCollector? i.e. they are delivered in the order they are found and
score is neither ascending or descending i.e. the next score could be
higher or lower that the previous one?

-----Original Message-----
From: Mark Miller <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: search(Query query, HitCollector results)
Date: Sun, 15 Feb 2009 12:37:22 -0500

[email protected] wrote:
> Hi,
>
> in what order does search(Query query, HitCollector results) return the
> results? By relevance?
>
> Thank you.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>   
The HitCollector used will determine how things are ordered. In 2.4, the 
TopDocCollector will order by relevancy and the TopFieldDocCollector can 
order by
relevancy, index order, or by field. Lucene delivers the hit ids to the 
HitCollector and it can order as it pleases.

- Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to