public function SolrConnectorPluginBase::coreRestPost in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::coreRestPost()
- 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::coreRestPost()
- 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::coreRestPost()
Sends a REST POST request to the Solr core and returns the result.
Parameters
string $path: The path to append to the base URI.
string $command_json: The command to send encoded as JSON.
Return value
string The decoded response.
Overrides SolrConnectorInterface::coreRestPost
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 603
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function coreRestPost($path, $command_json = '') {
return $this
->restRequest('core', $path, Request::METHOD_POST, $command_json);
}