> However I would also like to know that, is there any short
> way to put "\"
> before special character which will not effect the
> performance.

There is a static method in org.apache.lucene.queryParser.QueryParser that does 
this: QueryParser.escape(String s);




      

Reply via email to