You are here

public function SolrBackendInterface::getDocuments in Search API Solr 8

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

1 method overrides SolrBackendInterface::getDocuments()
SearchApiSolrBackend::getDocuments in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Retrieves Solr documents from search api index items.

File

src/SolrBackendInterface.php, line 69

Class

SolrBackendInterface
Defines an interface for Solr search backend plugins.

Namespace

Drupal\search_api_solr

Code

public function getDocuments(IndexInterface $index, array $items, UpdateQuery $update_query = NULL);