You are here

public function SolrBackendInterface::getDocument in Search API Solr 8

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

Retrieves a Solr document from an search api index item.

Parameters

\Drupal\search_api\IndexInterface $index: The search api index.

\Drupal\search_api\Item\ItemInterface $item: An item to get documents for.

Return value

\Solarium\QueryType\Update\Query\Document A solr document.

1 method overrides SolrBackendInterface::getDocument()
SearchApiSolrBackend::getDocument in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Retrieves a Solr document from an search api index item.

File

src/SolrBackendInterface.php, line 54

Class

SolrBackendInterface
Defines an interface for Solr search backend plugins.

Namespace

Drupal\search_api_solr

Code

public function getDocument(IndexInterface $index, ItemInterface $item);