public function Solr36Connector::coreRestGet in Search API Solr 4.x
Sends a REST GET request to the Solr core and returns the result.
Parameters
string $path: The path to append to the base URI.
\Solarium\Core\Client\Endpoint|null $endpoint:
Return value
string The decoded response.
Throws
\Drupal\search_api_solr\SearchApiSolrException
Overrides SolrConnectorPluginBase::coreRestGet
File
- modules/
search_api_solr_legacy/ src/ Plugin/ SolrConnector/ Solr36Connector.php, line 106
Class
- Solr36Connector
- Class Solr36Connector.
Namespace
Drupal\search_api_solr_legacy\Plugin\SolrConnectorCode
public function coreRestGet($path, ?Endpoint $endpoint = NULL) {
if (preg_match('@^schema/([^/]+)@', $path, $matches)) {
if ('fieldtypes' === $matches[1]) {
return [
'fieldTypes' => [
'name' => 'Solr 3.6',
],
];
}
}
return [];
}