Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 50183 invoked from network); 11 Mar 2009 16:35:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2009 16:35:15 -0000 Received: (qmail 25055 invoked by uid 500); 11 Mar 2009 16:35:11 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 25021 invoked by uid 500); 11 Mar 2009 16:35:11 -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 25012 invoked by uid 99); 11 Mar 2009 16:35:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 09:35:11 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 16:35:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 76D8E234C003 for ; Wed, 11 Mar 2009 09:34:50 -0700 (PDT) Message-ID: <205288721.1236789290472.JavaMail.jira@brutus> Date: Wed, 11 Mar 2009 09:34:50 -0700 (PDT) From: "Paul Elschot (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-998) BooleanQuery.setMaxClauseCount(int) is static In-Reply-To: <8306767.1189762112444.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680912#action_12680912 ] Paul Elschot commented on LUCENE-998: ------------------------------------- BooleanQueries can be nested in a tree. In that case a single max clause count should be used for the whole tree. For the contrib/surround query language a single factory for the leaf TermQueries (and SpanTermQueries) is used for a complete query tree. This factory throws an exception when more than a maximum number of leaf queries is requested. Wouldn't it be better to have something similar for BooleanQuery? > BooleanQuery.setMaxClauseCount(int) is static > --------------------------------------------- > > Key: LUCENE-998 > URL: https://issues.apache.org/jira/browse/LUCENE-998 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Affects Versions: 2.1 > Reporter: Tim Lebedkov > Attachments: lucene-998.patch > > > BooleanQuery.setMaxClauseCount(int) is static. It does not allow searching in multiple indices from different threads using different settings. This setting should be probably moved in to the IndexSearcher. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org