lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kipping, Peter" <>
Subject QueryParser and Special Characters
Date Mon, 09 May 2005 18:27:52 GMT
The documentation tells us to escape special characters by using the \



However if we put this in a string

String query = "\(1\+1\)";

Then the java compiler throws an Invalid Escape Sequence error.
QueryParser doesn't seem to recognize the double backslash.  Is there a
workaround for this?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message