public static function SearchApiSolrConnectionInterface::escape in Search API Solr 7
Escapes special characters from a Solr query.
A complete list of special characters in Solr queries can be viewed at http://lucene.apache.org/java/docs/queryparsersyntax.html#Escaping%20Spe...
Parameters
string $value: The string to escape.
int $version: An integer representing the major solr version.
Return value
string An escaped string suitable for passing to Solr.
1 method overrides SearchApiSolrConnectionInterface::escape()
- SearchApiSolrConnection::escape in includes/
solr_connection.inc - Escapes special characters from a Solr query.
File
- includes/
solr_connection.interface.inc, line 315
Class
- SearchApiSolrConnectionInterface
- The interface for a Solr connection class.
Code
public static function escape($value, $version = 0);