Re: search(Query query, HitCollector results)

2009-02-15 Thread Michael McCandless
Mark Miller wrote: Michael McCandless wrote: Mark Miller wrote: So HitCollector#collect(int doc, float score) is not called in a special (default) order and must order the docs itself by score if one needs the hits sorted by relevance? Presumably there is no score ordering to the h

Re: search(Query query, HitCollector results)

2009-02-15 Thread Mark Miller
Michael McCandless wrote: Mark Miller wrote: So HitCollector#collect(int doc, float score) is not called in a special (default) order and must order the docs itself by score if one needs the hits sorted by relevance? Presumably there is no score ordering to the hit id's lucene delivers

Re: search(Query query, HitCollector results)

2009-02-15 Thread Michael McCandless
Mark Miller wrote: So HitCollector#collect(int doc, float score) is not called in a special (default) order and must order the docs itself by score if one needs the hits sorted by relevance? Presumably there is no score ordering to the hit id's lucene delivers to a HitCollector? i.e.

Re: search(Query query, HitCollector results)

2009-02-15 Thread Mark Miller
So HitCollector#collect(int doc, float score) is not called in a special (default) order and must order the docs itself by score if one needs the hits sorted by relevance? Presumably there is no score ordering to the hit id's lucene delivers to a HitCollector? i.e. they are delivered in th

RE: search(Query query, HitCollector results)

2009-02-15 Thread spring
> 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. So

Re: search(Query query, HitCollector results)

2009-02-15 Thread Joel Halbert
Mark Miller Reply-To: java-user@lucene.apache.org To: java-user@lucene.apache.org Subject: Re: search(Query query, HitCollector results) Date: Sun, 15 Feb 2009 12:37:22 -0500 spr...@gmx.eu wrote: > Hi, > > in what order does search(Query query, HitCollector results) return the > resu

Re: search(Query query, HitCollector results)

2009-02-15 Thread Mark Miller
spr...@gmx.eu wrote: Hi, in what order does search(Query query, HitCollector results) return the results? By relevance? Thank you. - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-