lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petite_abeille <petite_abei...@mac.com>
Subject alternative query syntax?
Date Tue, 31 Aug 2004 11:02:21 GMT
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


Mime
View raw message