Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 3910 invoked from network); 15 Apr 2011 17:26:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2011 17:26:53 -0000 Received: (qmail 7234 invoked by uid 500); 15 Apr 2011 17:26:53 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 7192 invoked by uid 500); 15 Apr 2011 17:26:53 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Delivered-To: moderator for general@lucene.apache.org Received: (qmail 94809 invoked by uid 99); 12 Apr 2011 01:13:43 -0000 X-ASF-Spam-Status: No, hits=4.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HK_RANDOM_ENVFROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of teddyyyy123@gmail.com) Date: Mon, 11 Apr 2011 18:13:16 -0700 (PDT) From: yangyangyyy To: general@lucene.apache.org Message-ID: <1302570796085-2809558.post@n3.nabble.com> In-Reply-To: <4DA37EE7.7020001@apache.org> References: <1302547828612-2807905.post@n3.nabble.com> <627523.48877.qm@web130104.mail.mud.yahoo.com> <1302553518973-2808406.post@n3.nabble.com> <4DA37EE7.7020001@apache.org> Subject: Re: Number of Boolean Clauses (AND vs OR) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Doug: when you say "executed" in parallel, could you please elaborate more on what "execute" refers to? I just managed to look through the code. on our Solr setup, by default, a query "dog cat" (not phrase search) comes to a DisjunctionSumScorer, and if by "execute" you mean the call to score(), it seems that the DisjunctionSumScorer still evaluates score() serially, just iterating down the multiple subscorers queue "scorerDocQueue", as is in DisjunctionSumScorer: protected boolean advanceAfterCurrent() throws IOException { ConjunctionScorer looks similar , just different in the way doNext() iterates through the doc queues. if the above scenario is indeed run in serial, how could we enable parallel evaluation? does that need some special config? (this is lucene 2.9.4 + Solr 1.4.2 ) Thanks a lot Yang ############################### On 04/11/2011 01:25 PM, entdeveloper wrote: > Thanks Otis. And by your answer, does this mean that individual clauses in > a > boolean query are executed sequentially? not in parallel? Clauses are executed in parallel. The execution of a conjunction is able to efficiently skip occurrences in ranges of documents that do not contain all clauses, while, for a disjunction, every occurrence of every clause must be considered. Doug -- View this message in context: http://lucene.472066.n3.nabble.com/Number-of-Boolean-Clauses-AND-vs-OR-tp2807905p2809558.html Sent from the Lucene - General mailing list archive at Nabble.com.