You are here

public static function SearchApiSolrConnection::phrase in Search API Solr 7

Converts a string to a Solr phrase.

Parameters

string $value: The string to convert to a phrase.

Return value

string A phrase string suitable for passing to Solr.

Overrides SearchApiSolrConnectionInterface::phrase

File

includes/solr_connection.inc, line 703

Class

SearchApiSolrConnection
Represents a Solr server resource.

Code

public static function phrase($value) {
  return '"' . self::escapePhrase($value) . '"';
}