class SearchApiAcquiaSearchConnection in Acquia Search for Search API 7
Same name and namespace in other branches
- 7.2 includes/v2/SearchApiAcquiaSearchConnection.php \SearchApiAcquiaSearchConnection
Establishes a connection to the Acquia Search service.
Hierarchy
- class \SearchApiSolrConnection implements SearchApiSolrConnectionInterface
Expanded class hierarchy of SearchApiAcquiaSearchConnection
File
- includes/
SearchApiAcquiaSearchConnection.php, line 11 - Contains SearchApiAcquiaSearchConnection.
View source
class SearchApiAcquiaSearchConnection extends SearchApiSolrConnection {
/**
* Overrides SearchApiSolrConnection::__construct().
*
* Uses the Acquia Search HTTP transport instead of the transport provided by
* the Search API Solr module. This allows us to add the tokens and variables
* required to authenticate against Acquia's HMAC authentication scheme.
*
* @see SearchApiAcquiaSearchHttpTransport
*/
public function __construct(array $options) {
parent::__construct($options);
$this->newClient = trim(parent::SVN_REVISION, '$ :A..Za..z') > 40;
if ($this->newClient) {
$this->_httpTransport = new SearchApiAcquiaSearchHttpTransport($this->http_auth);
if (isset($options['derived_key'])) {
$this->_httpTransport
->setDerivedKey($options['derived_key']);
}
}
else {
throw new Exception(t('This module only works with the latest version of SolrPhpClient'));
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SearchApiAcquiaSearchConnection:: |
public | function |
Overrides SearchApiSolrConnection::__construct(). Overrides SearchApiSolrConnection:: |
|
SearchApiSolrConnection:: |
protected | property | The Solr server's URL. | |
SearchApiSolrConnection:: |
protected | property | HTTP Basic Authentication header to set for requests to the Solr server. | |
SearchApiSolrConnection:: |
protected | property | Cache for the metadata from admin/luke. | |
SearchApiSolrConnection:: |
protected | property | The options passed when creating this connection. | |
SearchApiSolrConnection:: |
protected | property | Flag that denotes whether to use soft commits for Solr 4.x. | |
SearchApiSolrConnection:: |
protected | property | Cache for information about the Solr core. | |
SearchApiSolrConnection:: |
protected | property | The stream context to use for requests to the Solr server. | |
SearchApiSolrConnection:: |
protected | property | Cache for system information. | |
SearchApiSolrConnection:: |
protected | property | Cached URL to the update servlet. | |
SearchApiSolrConnection:: |
public | function |
Adds an array of Solr Documents to the index all at once Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
protected | function | Checks the reponse code and throws an exception if it's not 200. | |
SearchApiSolrConnection:: |
public | function |
Clears the cached Solr data. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Sends a commit command to the Solr server. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
protected | function | Returns the HTTP URL for a certain servlet on the Solr server. | |
SearchApiSolrConnection:: |
public | function |
Sends a delete request based on a document ID. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Sends a delete request for several documents, based on the document IDs. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Sends a delete request for all documents that match the given Solr query. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public static | function |
Escapes special characters from a Solr query. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public static | function |
Escapes a Search API field name for passing to Solr. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public static | function |
Escapes a string that should be included in a Solr phrase. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
constant | Path to the file servlet. | ||
SearchApiSolrConnection:: |
public | function |
Gets the base URL of the Solr server. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
protected | function | Computes the cache ID to use for this connection. | |
SearchApiSolrConnection:: |
public | function |
Get metadata about fields in the Solr/Lucene index. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Gets meta-data about the index. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Tells whether this connection will use soft commits when comitting. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Gets the current solr version. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Gets information about the Solr core. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Gets summary information about the Solr Core. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Returns the stream context to use for requests to the Solr server. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Implements SearchApiSolrConnectionInterface::getSystemInfo(). Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
protected | function | Generates an URL-encoded query string. | |
SearchApiSolrConnection:: |
protected | function | Logs a Solr response object. | |
SearchApiSolrConnection:: |
constant | Path to the luke servlet. | ||
SearchApiSolrConnection:: |
protected | function | Sends an HTTP request to Solr. | |
SearchApiSolrConnection:: |
public | function |
Makes a request to a servlet (a path) that's not a standard path. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
constant | Defines how NamedLists should be formatted in the output. | ||
SearchApiSolrConnection:: |
public | function |
Sends an optimize command to the Solr server. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
protected | function | Sends a commit or optimize command to the Solr server. | |
SearchApiSolrConnection:: |
public static | function |
Converts a string to a Solr phrase. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
public | function |
Calls the /admin/ping servlet, to test the connection to the server. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
constant | Path to the ping servlet. | ||
SearchApiSolrConnection:: |
public | function |
Executes a search on the Solr server. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
constant | Path to the search servlet. | ||
SearchApiSolrConnection:: |
protected | function | Sends a GET request to the Solr server. | |
SearchApiSolrConnection:: |
protected | function | Sends a PUT request to the Solr server. | |
SearchApiSolrConnection:: |
public | function |
Sets the base URL of the Solr server. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
protected | function | Sets $this->luke with the metadata about the index from admin/luke. | |
SearchApiSolrConnection:: |
public | function |
Sets whether this connection will use soft commits when comitting. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
protected | function | Stores information about the Solr core in $this->stats. | |
SearchApiSolrConnection:: |
public | function |
Set the stream context to use for requests to the Solr server. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
protected | function | Call the /admin/system servlet to retrieve system information. | |
SearchApiSolrConnection:: |
constant | Path to the stats servlet. | ||
SearchApiSolrConnection:: |
constant | Path to the stats servlet for Solr 4.x servers. | ||
SearchApiSolrConnection:: |
constant | Path to the system servlet. | ||
SearchApiSolrConnection:: |
public | function |
Sends a raw update request to the Solr server. Overrides SearchApiSolrConnectionInterface:: |
|
SearchApiSolrConnection:: |
constant | Path to the update servlet. |