lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <>
Subject Re: search on colon ":" ending words
Date Fri, 23 Feb 2007 04:18:48 GMT
Felix Litman wrote:
> Yes. thank you.  How did you make that modification not to treat ":" as a field-name
> Is it using this  Or some other way?

I removed the : handling stuff from QueryParser.jj in the method:

Query Clause(String field) :

I removed this section
     fieldToken=<TERM> <COLON> {field=discardEscapeChar(fieldToken.image);}
     | <STAR> <COLON> {field="*";}

and you can also remove the COLON and : related bits to do with start terms and 
escaped chars if you want to exclude treating : as a separator, but from memory, 
it's the above section that does the field recognition.


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

View raw message