You are here

public function SolrBackendInterface::extractContentFromFile in Search API Solr 4.x

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

Extract a file's content using tika within a solr server.

Parameters

string $filepath: The real path of the file to be extracted.

Return value

string The text extracted from the file.

Throws

\Drupal\search_api\SearchApiException

1 method overrides SolrBackendInterface::extractContentFromFile()
SearchApiSolrBackend::extractContentFromFile in src/Plugin/search_api/backend/SearchApiSolrBackend.php

File

src/SolrBackendInterface.php, line 153

Class

SolrBackendInterface
Defines an interface for Solr search backend plugins.

Namespace

Drupal\search_api_solr

Code

public function extractContentFromFile($filepath);