Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 72566 invoked from network); 15 Apr 2006 20:20:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Apr 2006 20:20:06 -0000 Received: (qmail 39009 invoked by uid 500); 15 Apr 2006 20:20:02 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 38696 invoked by uid 500); 15 Apr 2006 20:20:01 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 38685 invoked by uid 99); 15 Apr 2006 20:20:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 13:20:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jeff.rodenburg@gmail.com designates 64.233.184.232 as permitted sender) Received: from [64.233.184.232] (HELO wproxy.gmail.com) (64.233.184.232) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 13:20:00 -0700 Received: by wproxy.gmail.com with SMTP id 55so944376wri for ; Sat, 15 Apr 2006 13:19:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=bXb3ARa7onXy6XC2zmhtbDNsWxJIvhOzEx3y/iaAOM1TllWnR70cIe0/ugCHgqulGinw9Y4yHa60+J/MiYeEsw3a1mgIkj0cK2IaHmNeJJXHEDMwSMcyIu7/uz+j89RexBsDB4EFeC0nldKJP4HjmwVjcaOX34o56OlmHhRAEKs= Received: by 10.65.210.20 with SMTP id m20mr528364qbq; Sat, 15 Apr 2006 13:19:39 -0700 (PDT) Received: by 10.65.214.4 with HTTP; Sat, 15 Apr 2006 13:19:39 -0700 (PDT) Message-ID: <50f433360604151319w35012f12t819a47580883e8c8@mail.gmail.com> Date: Sat, 15 Apr 2006 13:19:39 -0700 From: "Jeff Rodenburg" To: java-user@lucene.apache.org Subject: Re: Why is BooleanQuery.maxClauseCount static? In-Reply-To: <200604152123.42575.paul.elschot@xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2421_27220383.1145132379909" References: <50f433360604150920s3ffd74dch1732f91cd4839726@mail.gmail.com> <200604152123.42575.paul.elschot@xs4all.nl> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_2421_27220383.1145132379909 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks Paul. In my case, I don't have nested queries but rather separate queries running against different indexes -- some with very high clause counts, and some with very low clause counts. These are executing in a web environment with the same memory space and process, so concurrency can sometimes cause problems when both types of queries need to execute simultaneously. -- j On 4/15/06, Paul Elschot wrote: > > On Saturday 15 April 2006 18:20, Jeff Rodenburg wrote: > > What was the thinking behind making the BooleanQuery maxClauseCount a > > static? Or, I guess more to the point, why not an instance setting as > well? > > > > Not trying to point out a flaw, just curious about the original thinkin= g > > behind the setting. I have a situation where I have a set of > BooleanQueries > > that use a high number of clauses, but another set that needs a low > number > > of clauses (different indexes searched, and efficiencies dictate the > > high/low clause range.) > > The reason is to have simplicity in dealing with the case of a single > BooleanQuery using many terms. This was done to avoid spurious > OutOfMemory problems for queries that happen to expand to a lot > of terms, and for that it works well. > > With nested BooleanQuerys it wouldn't even make sence to have an > instance setting, because in that case the maximum number of clauses > should be associated with the top level query only. > > Regards, > Paul Elschot. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_2421_27220383.1145132379909--