I See :)
Thanks very much...

I've misunderstood one of these statements.

2007/10/25, Yonik Seeley <[EMAIL PROTECTED]>:
>
> I'd remove this entry rather than fix it... it could hardly be a
> "frequently" asked question :-)
>
> -Yonik
>
> On 10/25/07, Apache Wiki <[EMAIL PROTECTED]> wrote:
> > Dear Wiki user,
> >
> > You have subscribed to a wiki page or wiki category on "Lucene-java
> Wiki" for change notification.
> >
> > The following page has been changed by GrantIngersoll:
> > http://wiki.apache.org/lucene-java/LuceneFAQ
> >
> > The comment on the change is:
> > corrected information concerning how TopDocCollector works.
> >
> >
> ------------------------------------------------------------------------------
> >         if (score > 0.0f) {
> >                 totalHits++;
> >                 if (hq.size() < numHits || score >= minScore) {
> > -                 // *** When hq.size() >= numHits, collect() operation
> will stop, Do we really want it stop?  ***
> > -                 // *** What will happen if there are still some else
> docs whose score higher than minScore ? ***
> >                         hq.insert(new ScoreDoc(doc, score));
> >                         minScore = ((ScoreDoc)hq.top()).score; //
> maintain minScore
> >                 }
> > @@ -403, +401 @@
> >
> >   }
> >
> >   }}}
> > + This code means that once the PriorityQueue is full, it will ONLY
> insert new documents if the score of the new document is greater than the
> minimum score in the queue.  It does not mean Lucene will stop scoring
> documents once the queue is full.
> >
> >   === Indexing ===
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to