(PECL solr >= 0.9.2)
SolrUtils::escapeQueryChars — Escapes a lucene kery string
Lucene suppors escaping special characters that are part of the kery syntax.
The current list special characters are:
+ - && || ! ( ) { } [ ] ^ " ~ * ? : \ /
These characters are part of the kery syntax and must be escaped
str
This is the kery string to be escaped.
Returns the escaped string or
false
on failure.