You are here

public function SolrBackendInterface::extractContentFromFile in Search API Solr 8.3

Same name and namespace in other branches
  1. 8 src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface::extractContentFromFile()
  2. 8.2 src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface::extractContentFromFile()
  3. 4.x 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 143

Class

SolrBackendInterface
Defines an interface for Solr search backend plugins.

Namespace

Drupal\search_api_solr

Code

public function extractContentFromFile($filepath);