You are here

public static function DrupalApacheSolrService::phrase in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 Drupal_Apache_Solr_Service.php \DrupalApacheSolrService::phrase()
  2. 7 Drupal_Apache_Solr_Service.php \DrupalApacheSolrService::phrase()

Convenience function for creating phrase syntax from a value

Parameters

string $value:

Return value

string

File

./Drupal_Apache_Solr_Service.php, line 572

Class

DrupalApacheSolrService
Starting point for the Solr API. Represents a Solr server resource and has methods for pinging, adding, deleting, committing, optimizing and searching.

Code

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