lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven A Rowe" <>
Subject RE: escaping special characters
Date Mon, 11 Aug 2008 18:30:13 GMT
On 08/11/2008 at 2:14 PM, Chris Hostetter wrote:
> Aravind R Yarram wrote:
> > can i escape built in lucene keywords like OR, AND aswell?
> as of the last time i checked: no, they're baked into the grammer.

I have not tested this, but I've read somewhere on this list that enclosing OR and AND in
double quotes effectively escapes them.

> (that may have changed when it switchedfrom a javac to a flex grammer
> though, so i'm not 100% positive)

Although the StandardTokenizer was switched about a year ago from a JavaCC to a JFlex grammar,
QueryParser's grammar remains in the JavaCC camp.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message