You are here

public function SolrConnectorPluginBase::createSearchResult in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::createSearchResult()
  2. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::createSearchResult()
  3. 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::createSearchResult()

Creates a result from a response.

Parameters

QueryInterface $query:

\Solarium\Core\Client\Response $response:

Return value

\Solarium\Core\Query\Result\ResultInterface

Overrides SolrConnectorInterface::createSearchResult

File

src/SolrConnector/SolrConnectorPluginBase.php, line 783

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function createSearchResult(QueryInterface $query, Response $response) {
  return $this->solr
    ->createResult($query, $response);
}