Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 21226 invoked from network); 31 Aug 2004 12:42:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 Aug 2004 12:42:55 -0000 Received: (qmail 88972 invoked by uid 500); 31 Aug 2004 12:42:36 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 88835 invoked by uid 500); 31 Aug 2004 12:42:35 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 88691 invoked by uid 99); 31 Aug 2004 12:42:33 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [216.136.173.242] (HELO web12705.mail.yahoo.com) (216.136.173.242) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 31 Aug 2004 05:42:32 -0700 Message-ID: <20040831124231.34561.qmail@web12705.mail.yahoo.com> Received: from [195.29.101.113] by web12705.mail.yahoo.com via HTTP; Tue, 31 Aug 2004 05:42:31 PDT Date: Tue, 31 Aug 2004 05:42:31 -0700 (PDT) From: Otis Gospodnetic Subject: Re: alternative query syntax? To: Lucene Users List In-Reply-To: <3B529BD4-FB3D-11D8-B981-000393760B7E@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm not on very friendly terms with JavaCC either, but I think what you are saying is correct - it looks like lines 519 and 526 (the ones that define 'TO') are the ones to change, in Lucene CVS HEAD. Otis --- petite_abeille wrote: > Hello, > > I would like to provide an alternative query syntax for ranges by > using > a colon (':') or two dots ('..') instead of ' TO '. > > For example: > > mod_date:[20020101:20030101] > > Or > > mod_date:[20020101..20030101] > > What would be the correct procedure to modify the QueryParser to > achieve this? Should I simply change QueryParser.jj's RANGEIN_TO and > RANGEEX_TO to the appropriate character sequence and regenerate the > corresponding Java classes with JavaCC? > > Any pointers appreciated as I'm not familiar with JavaCC :) > > TIA. > > Cheers, > > PA. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org