You are here

public function SolrConnectorInterface::getContentFromExtractResult in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getContentFromExtractResult()
  2. 8 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getContentFromExtractResult()
  3. 8.2 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getContentFromExtractResult()

Gets the content from an extract query result.

Parameters

\Solarium\QueryType\Extract\Result $result: The Solarium extract result object.

string $filepath: The filepath to look for in results.

Return value

string The extracted content as string.

Throws

\Drupal\search_api_solr\SearchApiSolrException

1 method overrides SolrConnectorInterface::getContentFromExtractResult()
SolrConnectorPluginBase::getContentFromExtractResult in src/SolrConnector/SolrConnectorPluginBase.php
Gets the content from an extract query result.

File

src/SolrConnectorInterface.php, line 503

Class

SolrConnectorInterface
The Solr connector interface.

Namespace

Drupal\search_api_solr

Code

public function getContentFromExtractResult(ExtractResult $result, $filepath);