Escaping special characters
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sathya_Narain
Posted On:   Monday, July 11, 2005 07:26 PM

Hi,

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 ?

Thanks,
-S

About | Sitemap | Contact