public function SolrBackendInterface::getDocument in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface::getDocument()
- 8 src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface::getDocument()
- 8.2 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 entity.
\Drupal\search_api\Item\ItemInterface $item: An item to get documents for.
Return value
\Solarium\QueryType\Update\Query\Document A solr document.
Throws
\Drupal\search_api\SearchApiException
1 method overrides SolrBackendInterface::getDocument()
- SearchApiSolrBackend::getDocument in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php
File
- src/
SolrBackendInterface.php, line 123
Class
- SolrBackendInterface
- Defines an interface for Solr search backend plugins.
Namespace
Drupal\search_api_solrCode
public function getDocument(IndexInterface $index, ItemInterface $item);