You are here

public function SolrBackendInterface::extractContentFromFile in Search API Solr 8

Same name and namespace in other branches
  1. 8.3 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.

1 method overrides SolrBackendInterface::extractContentFromFile()
SearchApiSolrBackend::extractContentFromFile in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Extract a file's content using tika within a solr server.

File

src/SolrBackendInterface.php, line 80

Class

SolrBackendInterface
Defines an interface for Solr search backend plugins.

Namespace

Drupal\search_api_solr

Code

public function extractContentFromFile($filepath);