i use lucene search but lucene has a bunch of special characters to escape like:
- && || ! ( ) { } [ ] ^ \" ~ * ? : \\
i am havin
There is also a method called QueryParser#escape, which may be useful:
Returns a String where those characters that QueryParser expects to be escaped are escaped by a preceding \.