You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Yonik Seeley <yo...@apache.org> on 2007/10/25 15:26:45 UTC

Re: [Lucene-java Wiki] Update of "LuceneFAQ" by GrantIngersoll

I'd remove this entry rather than fix it... it could hardly be a
"frequently" asked question :-)

-Yonik

On 10/25/07, Apache Wiki <wi...@apache.org> 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: [Lucene-java Wiki] Update of "LuceneFAQ" by GrantIngersoll

Posted by h t <bl...@gmail.com>.
I See :)
Thanks very much...

I've misunderstood one of these statements.

2007/10/25, Yonik Seeley <yo...@apache.org>:
>
> I'd remove this entry rather than fix it... it could hardly be a
> "frequently" asked question :-)
>
> -Yonik
>
> On 10/25/07, Apache Wiki <wi...@apache.org> 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: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>