Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 93078 invoked from network); 14 Apr 2006 15:42:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Apr 2006 15:42:18 -0000 Received: (qmail 98861 invoked by uid 500); 14 Apr 2006 15:42:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 98647 invoked by uid 500); 14 Apr 2006 15:42:12 -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 98627 invoked by uid 99); 14 Apr 2006 15:42:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Apr 2006 08:42:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of chris.lu@gmail.com designates 64.233.184.225 as permitted sender) Received: from [64.233.184.225] (HELO wproxy.gmail.com) (64.233.184.225) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Apr 2006 08:42:10 -0700 Received: by wproxy.gmail.com with SMTP id 55so573599wri for ; Fri, 14 Apr 2006 08:41:49 -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:content-transfer-encoding:content-disposition:references; b=K2Rn5nsNXioUr0EUaRXx+eJFQu24WRAsriLNgDKvfYBDQ7+AiR1yFohtdAxrYriLD3iNDZHgRrh7SxSGt5uz0t9Hdy5ij9iqUpkiRAM/eCEGSGh4bpU1VZEm2+IyEpIrbV7EvMrKACWgNIcR1zKtFG7gGGYFJLAesfQW5YKjTI8= Received: by 10.65.194.11 with SMTP id w11mr365652qbp; Fri, 14 Apr 2006 08:41:49 -0700 (PDT) Received: by 10.65.93.17 with HTTP; Fri, 14 Apr 2006 08:41:49 -0700 (PDT) Message-ID: <6e3ae6310604140841i35c61700va4b6041f350614d6@mail.gmail.com> Date: Fri, 14 Apr 2006 08:41:49 -0700 From: "Chris Lu" To: java-user@lucene.apache.org Subject: Re: query analysis In-Reply-To: <5DA383B8-C7C4-460B-A4D7-AA2834D38384@snigel.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5DA383B8-C7C4-460B-A4D7-AA2834D38384@snigel.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N tried MultiFieldQueryParser? Chris Lu --------------------------------------- Full-Text Lucene Search on Any Databases http://www.dbsight.net Faster to Setup than reading marketing materials! On 4/14/06, karl wettin wrote: > Hello list, > > I want to know if a human written query passed through the > QueryParser is "clean" from fields, boolean clauses and query > indicators. Easy way out would of course to add a boolean that resets > at ReInit(), but maybe there is a smart way to do it. Perhaps it is > possible to treat the retuned Query as a composite pattern (i.e. > query.iterateNonRewrittenParts())? > > The plan is to avoid making suggestions on meta data in the query. > "+name:foo" should suggest on "foo" only, and not "+name:foo". I > initially tried to work the enumerateTerms, but realised this is > hopeless(?) as a rewritten query looks quite different. > > Perhaps I'm attacking this from the wrong angle? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org