Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 51921 invoked from network); 25 Oct 2007 13:27:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 13:27:19 -0000 Received: (qmail 31539 invoked by uid 500); 25 Oct 2007 13:27:03 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 31485 invoked by uid 500); 25 Oct 2007 13:27:03 -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 31474 invoked by uid 99); 25 Oct 2007 13:27:03 -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 06:27:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yseeley@gmail.com designates 64.233.170.186 as permitted sender) Received: from [64.233.170.186] (HELO rn-out-0102.google.com) (64.233.170.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 13:27:07 +0000 Received: by rn-out-0102.google.com with SMTP id v46so185258rnb for ; Thu, 25 Oct 2007 06:26:46 -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:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=XqhfxziOeU4kufyaBdZ7Va5iWxDvm0C1X0U5ZMVNIf0=; b=HJqbkul5iGTSoLpR5qHHLFrHKF3tjBHj0ZhgpUEgmiwYV/EV1IiRO6EwCGpZVDA46OoGk5KClcMWu1gdz7lsdUudZlX+AjPiFxTtbwBeBIZwkqWf0xubIoA8PG3urw5dPmP2dn+wmHqlYbjvExCaKw935z/jmgviutzMgWAH2r8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=cgRTZgR/m3fQzIkrseDDzpMHo1QawQSfTIWa9d678Z+ENe9kfFCzDdmof0ej3xxYT45Bz1KCH8vU6LBS9jyzW96mt70xeqpGOz3yh29daFqzJ6HlugFFHPV5UIaqPh60aS8xA5wiuyjC16ICesuBfw8lCS/bTQ//1n8KzqzWB/k= Received: by 10.142.102.5 with SMTP id z5mr444803wfb.1193318805095; Thu, 25 Oct 2007 06:26:45 -0700 (PDT) Received: by 10.143.165.13 with HTTP; Thu, 25 Oct 2007 06:26:45 -0700 (PDT) Message-ID: Date: Thu, 25 Oct 2007 09:26:45 -0400 From: "Yonik Seeley" Sender: yseeley@gmail.com To: java-dev@lucene.apache.org Subject: Re: [Lucene-java Wiki] Update of "LuceneFAQ" by GrantIngersoll In-Reply-To: <20071025125839.6993.76095@eos.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071025125839.6993.76095@eos.apache.org> X-Google-Sender-Auth: 204b33c9afc3c642 X-Virus-Checked: Checked by ClamAV on 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 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