Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 62717 invoked from network); 18 Feb 2006 15:29:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Feb 2006 15:29:53 -0000 Received: (qmail 68623 invoked by uid 500); 18 Feb 2006 15:29:47 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 68599 invoked by uid 500); 18 Feb 2006 15:29:47 -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 68588 invoked by uid 99); 18 Feb 2006 15:29:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Feb 2006 07:29:47 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.33.215.142] (HELO expasy-ng.isb-sib.ch) (192.33.215.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Feb 2006 07:29:46 -0800 Received: from [10.0.0.252] (lin-000 [192.33.215.254]) (authenticated bits=0) by expasy-ng.isb-sib.ch (8.12.10/8.12.8) with ESMTP id k1IFT567030505 for ; Sat, 18 Feb 2006 16:29:05 +0100 Received: from 127.0.0.1 (AVG SMTP 7.1.375 [267.15.11/264]); Sat, 18 Feb 2006 16:28:54 +0100 Message-ID: <43F73D36.9010800@isb-sib.ch> Date: Sat, 18 Feb 2006 16:28:54 +0100 From: Eric Jain Organization: Swiss Institute of Bioinformatics User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: QueryPrinter? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-sib-MailScanner-Information: Please contact the ISP for more information X-sib-MailScanner: Found to be clean X-sib-MailScanner-From: eric.jain@isb-sib.ch X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I need to parse a query string, modify it a bit, and then output the modified query string. This works quite well with query.toString(), except that when I parse the query I set DEFAULT_OPERATOR_AND, and the output of BooleanQuery.toString() assumes DEFAULT_OPERATOR_OR... Would be great if this behavior could be changed through a static field, or perhaps someone has already written some kind of QueryPrinter that is a bit more flexible? --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org