Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 22450 invoked from network); 5 Jul 2005 08:02:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2005 08:02:36 -0000 Received: (qmail 10236 invoked by uid 500); 5 Jul 2005 08:02:28 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 10215 invoked by uid 500); 5 Jul 2005 08:02:28 -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 10202 invoked by uid 99); 5 Jul 2005 08:02:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2005 01:02:28 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE,HTML_TITLE_EMPTY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [143.205.118.212] (HELO proserver2.ifit.uni-klu.ac.at) (143.205.118.212) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2005 01:02:28 -0700 Received: from [143.205.118.98] ([143.205.118.98]) by proserver2.ifit.uni-klu.ac.at over TLS secured channel with Microsoft SMTPSVC(5.0.2195.6713); Tue, 5 Jul 2005 10:02:21 +0200 Message-ID: <42CA3E8D.4000009@ifit.uni-klu.ac.at> Date: Tue, 05 Jul 2005 10:02:21 +0200 From: sergiu gordea User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: free text search with numbers References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------010101080009020802030301" X-OriginalArrivalTime: 05 Jul 2005 08:02:21.0965 (UTC) FILETIME=[DF4FA3D0:01C58137] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------010101080009020802030301 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi Christian, That syntax is not entirely correct. Search in the mailing list for "*term" or suffix queries a few months ago I submitted the correct grammar that enables suffix queries. Best, Sergiu BOUDOT Christian wrote: >I have found in the QueryParser.jj those lines of comments: > >// OG: to support prefix queries: >// http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12137 >// Change from: >// | >// (<_TERM_CHAR> | ( [ "*", "?" ] ))* > >// To: >// >// | | ( [ "*", "?" ] ))* > > >So as indicated I changed my line to the second option but it didn't solve >the problem I still getting the lexical error. Do I have to do something >special to this .jj file or is it read when the QueryParser.java file is >compiled? > >Cheers >Chris > > >-----Original Message----- >From: Erik Hatcher [mailto:erik@ehatchersolutions.com] >Sent: 04 July 2005 16:15 >To: java-user@lucene.apache.org >Subject: Re: free text search with numbers > > >On Jul 4, 2005, at 9:02 AM, BOUDOT Christian wrote: > > > >>Hi, >> >>I modified the analyzer (it is now vegetarian and won't eat numbers >>anymore >>:-) but I have hit a new problem. The parser won't accept a keyword >>to start >>with a wildcard character. (*/12/2003) Any hints to solve this new >>issue? >> >> > >This is by-design "issue" with QueryParser (to avoid WildcardQuery's >from being created that run through every term in the index). It is >the way the grammar has been defined. You would need to build your >own QueryParser to change this behavior. The relevant QueryParser >grammar piece is this (from QueryParser.jj): > >| > (<_TERM_CHAR> | ( [ "*", "?" ] ))* > > > Erik > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >For additional commands, e-mail: java-user-help@lucene.apache.org > > > --------------010101080009020802030301--