lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <...@teamware.com>
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
terminator?
> 
> 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
---
   [
     LOOKAHEAD(2)
     (
     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.

Antony


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message