Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 77587 invoked from network); 26 Oct 2007 04:13:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 04:13:22 -0000 Received: (qmail 16946 invoked by uid 500); 26 Oct 2007 04:13:07 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 16907 invoked by uid 500); 26 Oct 2007 04:13:07 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 16895 invoked by uid 99); 26 Oct 2007 04:13:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 21:13:07 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of blueye117@gmail.com designates 209.85.198.185 as permitted sender) Received: from [209.85.198.185] (HELO rv-out-0910.google.com) (209.85.198.185) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 04:13:11 +0000 Received: by rv-out-0910.google.com with SMTP id k20so588678rvb for ; Thu, 25 Oct 2007 21:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=9XTIz7TABnBjX8j/IIggtx9CatGE2cumFiZo3Qstq5g=; b=Cuzy7f7g9iSugisB46ubcY+e++Sr7fqRPWR8NC+EzWaMMja60SnGU9nySt3icsntWRQvtkLi+e4QNSXQpZrFF+SV4gGnFi7ziAiGwg58NGrMrH9rtDKVhsX4g0P2RbofB0nXE12CcWCHUdaLB//IF7YEHfb0ayOGtZz+V6Lt0Ww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rbix0KLbxIoVSGkdZdt2ZvcywUUKdbeHWycrnUriUu4qRXaD2t1OOvhXcNfSBznpDXyBOS0k26SXo+v+3PGvH84y25I81Efha8R51IMpxax2tBvpJ2T8/QNVkCr/ZNQHxvH2ObwdeQqqOJHvEfCJqJuOOiURu/JiSeOWAzQWqZc= Received: by 10.141.203.7 with SMTP id f7mr1312381rvq.1193371969494; Thu, 25 Oct 2007 21:12:49 -0700 (PDT) Received: by 10.141.122.4 with HTTP; Thu, 25 Oct 2007 21:12:49 -0700 (PDT) Message-ID: Date: Fri, 26 Oct 2007 12:12:49 +0800 From: "h t" To: java-dev@lucene.apache.org Subject: Re: [Lucene-java Wiki] Update of "LuceneFAQ" by GrantIngersoll In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2619_7015698.1193371969509" References: <20071025125839.6993.76095@eos.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2619_7015698.1193371969509 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I See :) Thanks very much... I've misunderstood one of these statements. 2007/10/25, Yonik Seeley : > > I'd remove this entry rather than fix it... it could hardly be a > "frequently" asked question :-) > > -Yonik > > On 10/25/07, Apache Wiki 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 > > ------=_Part_2619_7015698.1193371969509--