public function StandardSolrCloudConnector::graph in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::graph()
- 8.2 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 298
Class
- StandardSolrCloudConnector
- Standard Solr Cloud connector.
Namespace
Drupal\search_api_solr\Plugin\SolrConnectorCode
public function graph(GraphQuery $query, ?Endpoint $endpoint = NULL) {
$this
->useTimeout(self::QUERY_TIMEOUT, $endpoint);
return $this
->execute($query, $endpoint);
}