You are here

public function SolrConnectorInterface::coreRestPost in Search API Solr 8.3

Same name and namespace in other branches
  1. 8 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::coreRestPost()
  2. 8.2 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::coreRestPost()
  3. 4.x src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::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.

Throws

\Drupal\search_api_solr\SearchApiSolrException

1 method overrides SolrConnectorInterface::coreRestPost()
SolrConnectorPluginBase::coreRestPost in src/SolrConnector/SolrConnectorPluginBase.php
Sends a REST POST request to the Solr core and returns the result.

File

src/SolrConnectorInterface.php, line 213

Class

SolrConnectorInterface
The Solr connector interface.

Namespace

Drupal\search_api_solr

Code

public function coreRestPost($path, $command_json = '');