public function SolrBackendInterface::getDocuments in Search API Solr 8.3
Same name and namespace in other branches
- 8 src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface::getDocuments()
- 8.2 src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface::getDocuments()
- 4.x src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface::getDocuments()
Retrieves Solr documents from search api index items.
Parameters
\Drupal\search_api\IndexInterface $index: The Search API index.
\Drupal\search_api\Item\ItemInterface[] $items: An array of items to get documents for.
\Solarium\QueryType\Update\Query\Query $update_query: The existing update query the documents should be added to.
Return value
\Solarium\QueryType\Update\Query\Document[] An array of solr documents.
Throws
\Drupal\search_api\SearchApiException
1 method overrides SolrBackendInterface::getDocuments()
- SearchApiSolrBackend::getDocuments in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php
File
- src/
SolrBackendInterface.php, line 130
Class
- SolrBackendInterface
- Defines an interface for Solr search backend plugins.
Namespace
Drupal\search_api_solrCode
public function getDocuments(IndexInterface $index, array $items, UpdateQuery $update_query = NULL);