Monday, July 11, 2005 07:26 PM
I was using the sample code available with the download and I added in two files:
One with text: tina
second with text: ~tina
I was trying the Searcher.java (sample code) and trying to search for "\~tina" (match only documents containing the exact text ~tina).
And lucene always reports hits in both the documents. I tried Standard, Simple and Whitespace Analyzers with the QueryParser and with all of them the result is the same.
Do I need to do anything else to enable escaping ?