Re: QueryParser: if key contains a colon

2007-12-14 Thread Erick Erickson
This should help http://lucene.apache.org/java/docs/queryparsersyntax.html Erick On Dec 14, 2007 7:28 AM, Helmut Jarausch <[EMAIL PROTECTED]> wrote: > Hi, > > how can one search for a key containing a colon when > using QueryParser (with WhitespaceAnalyzer) > > E.g. > searching for 'abc:def'

QueryParser: if key contains a colon

2007-12-14 Thread Helmut Jarausch
Hi, how can one search for a key containing a colon when using QueryParser (with WhitespaceAnalyzer) E.g. searching for 'abc:def' Giving this string to QueryParser's parse method, abc: will be misinterpreted as the name of a field. How can this be avoided? Is there something like an escape tec