public static function SearchApiSolrConnectionInterface::escapePhrase in Search API Solr 7
Escapes a string that should be included in a Solr phrase.
In contrast to escape(), this only escapes '"' and '\'.
Parameters
string $value: The string to escape.
Return value
string An escaped string suitable for passing to Solr.
1 method overrides SearchApiSolrConnectionInterface::escapePhrase()
- SearchApiSolrConnection::escapePhrase in includes/
solr_connection.inc - Escapes a string that should be included in a Solr phrase.
File
- includes/
solr_connection.interface.inc, line 328
Class
- SearchApiSolrConnectionInterface
- The interface for a Solr connection class.
Code
public static function escapePhrase($value);