You are here

public function SearchApiQuery::postExecute in Search API 7

Postprocesses the search results before they are returned.

This method should always be called by execute() and contain all necessary operations after the results are returned from the server.

Parameters

array $results: The results returned by the server, which may be altered. The data structure is the same as returned by execute().

Overrides SearchApiQueryInterface::postExecute

1 call to SearchApiQuery::postExecute()
SearchApiQuery::execute in includes/query.inc
Executes this search query.

File

includes/query.inc, line 738
Contains SearchApiQueryInterface and SearchApiQuery.

Class

SearchApiQuery
Provides a standard implementation of the SearchApiQueryInterface.

Code

public function postExecute(array &$results) {

  // Postprocess results.
  $this->index
    ->postprocessSearchResults($results, $this);

  // Let modules alter the results.
  drupal_alter('search_api_results', $results, $this);
}