Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 78742 invoked from network); 12 Dec 2007 00:34:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Dec 2007 00:34:36 -0000 Received: (qmail 72410 invoked by uid 500); 12 Dec 2007 00:34:18 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 72384 invoked by uid 500); 12 Dec 2007 00:34:18 -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 72373 invoked by uid 99); 12 Dec 2007 00:34:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2007 16:34:18 -0800 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: local policy) Received: from [203.217.22.128] (HELO file1.syd.nuix.com.au) (203.217.22.128) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2007 00:33:57 +0000 Received: from host68.syd.nuix.com.au (host68.syd.nuix.com.au [192.168.222.68]) by file1.syd.nuix.com.au (Postfix) with ESMTP id EB88F4A8263 for ; Wed, 12 Dec 2007 11:33:25 +1100 (EST) From: Daniel Noll Organization: Nuix Pty Ltd To: java-user@lucene.apache.org Subject: Re: DEFAULT_OPERATOR_AND globally ? Date: Wed, 12 Dec 2007 11:33:33 +1100 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712121133.33361.daniel@nuix.com> X-Virus-Checked: Checked by ClamAV on apache.org On Wednesday 12 December 2007 03:34:08 Helmut Jarausch wrote: > Hi, > > I know how to set DEFAULT_OPERATOR_AND for an individual QueryParser > Objekt (after creation) > > Since I always want this to be set, is there a means to set a (global) > option such that any QueryParser object has this default operator. I would simply centralise the place where you construct your QueryParser, either in a utility method, a factory or a builder. Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org