From scott.ganyo@etapestry.com Fri Sep 5 17:57:22 2003 Return-Path: Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 81653 invoked from network); 5 Sep 2003 17:57:22 -0000 Received: from unknown (HELO darth?bobo.etapestry.com) (216.37.32.2) by daedalus.apache.org with SMTP; 5 Sep 2003 17:57:22 -0000 Received: from etapestry.com (192.168.1.103 [192.168.1.103]) by darth_bobo.etapestry.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id SGR2JBBK; Fri, 5 Sep 2003 12:56:29 -0500 Message-ID: <3F58CE26.9070608@etapestry.com> Date: Fri, 05 Sep 2003 12:55:50 -0500 From: Scott Ganyo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Users List Subject: Re: Limit on number of required/prohibited clauses References: <20030905172206.42009.qmail@web80708.mail.yahoo.com> In-Reply-To: <20030905172206.42009.qmail@web80708.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Eugene, Yes. Doug (Cutting) added this to eliminate OutOfMemory errors that apparently some people were having. Unfortunately, it causes backward-compatibility issues if you were used to using version 1.2. So, you'll need to add a call like this: BooleanQuery.setMaxClauseCount(Integer.MAX_VALUE); (Of course, you can set the parameter to whatever you want, but unrestricted works best for me.) Scott Eugene S. wrote: >Hi, > >I've come across the limit on the number of >required/prohibited clauses in a boolean query (the >limit is 32). What is the reasoning for having such >limit? Can it be circumvented? > >Thanks! > >Eugene. > >__________________________________ >Do you Yahoo!? >Yahoo! SiteBuilder - Free, easy-to-use web site design software >http://sitebuilder.yahoo.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > -- All progress is initiated by challenging current conceptions, and executed by supplanting existing institutions. - George Bernard Shaw