lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kipping, Peter" <Peter.Kipp...@taylorandfrancis.com>
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 \

Example:

\(1\+1\)

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?

Thanks,
Peter

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