Hi,

I followed the following procedure to escape special characteres.

String escapedKeywords = QueryParser.escape(keywords);
Query query = new QueryParser("content", new
StandardAnalyzer()).parse(escapedKeywords);

this works with most of the special characters like * and ~ except \ . I
can't do a search for a keyword like "ho\w" and get results.
am I doing anything wrong here.


Thanks,
Kalani
-- 
Kalani Ruwanpathirana
Department of Computer Science & Engineering
University of Moratuwa

Reply via email to