You are here

protected function SearchApiSolrService::alterSolrDocuments in Search API Solr 7

Applies custom modifications to indexed Solr documents.

This method allows subclasses to easily apply custom changes before the documents are sent to Solr. The method is empty by default.

Parameters

array $documents: An array of SearchApiSolrDocument objects ready to be indexed, generated from $items array.

SearchApiIndex $index: The search index for which items are being indexed.

array $items: An array of items being indexed.

See also

hook_search_api_solr_documents_alter()

1 call to SearchApiSolrService::alterSolrDocuments()
SearchApiSolrService::indexItems in includes/service.inc
Indexes the specified items.

File

includes/service.inc, line 828

Class

SearchApiSolrService
Search service class using Solr server.

Code

protected function alterSolrDocuments(array &$documents, SearchApiIndex $index, array $items) {
}