You are here

public function StandardSolrCloudConnector::graph in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::graph()
  2. 4.x src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::graph()

Executes a graph query.

Parameters

\Solarium\QueryType\Graph\Query $query: The Solarium graph query.

\Solarium\Core\Client\Endpoint|null $endpoint: (optional) The Solarium endpoint.

Return value

\Solarium\QueryType\Graph\Result The Solarium graph result.

Throws

\Drupal\search_api_solr\SearchApiSolrException

Overrides SolrCloudConnectorInterface::graph

File

src/Plugin/SolrConnector/StandardSolrCloudConnector.php, line 216

Class

StandardSolrCloudConnector
Standard Solr Cloud connector.

Namespace

Drupal\search_api_solr\Plugin\SolrConnector

Code

public function graph(GraphQuery $query, ?Endpoint $endpoint = NULL) {
  return $this
    ->execute($query, $endpoint);
}