/** * Overrides SearchApiSolrConnection::__construct(). * * Also accepts the 'derived_key' setting in $options to set the derived key * used to HMAC hash the search request. * * @see SearchApiAcquiaSearchHttpTransport */ public function __construct(array $options) { parent::__construct($options); if (isset($options['derived_key'])) { $this->derivedKey = $options['derived_key']; } }
/** * Constructor */ public function __construct(array $options) { $host = variable_get('pantheon_hyperion_host', FALSE); if (!$host) { $host = 'index.' . variable_get('pantheon_tier', 'live') . '.getpantheon.com'; } $path = 'sites/self/environments/' . variable_get('pantheon_environment', 'dev') . '/index'; $options = array('host' => $host, 'path' => $path, 'port' => 449, 'default_field' => 'id'); parent::__construct($options); // Since /ping otherwise complains about missing default field. $this->_pingUrl .= '?q=' . $options['default_field'] . ':1'; // As of July 2011, the newest release is r60, with Service.php having // revision 59. Revision 40 is just anything between 22 (old) and that. $this->newClient = trim(parent::SVN_REVISION, '$ :A..Za..z') > 40; if ($this->newClient) { $this->_httpTransport = new PanteheonSearchApiSolrHttpTransport(); } }