public function Index::postprocessSearchResults in Search API 8
Postprocesses search results before they are displayed.
If a class is used for both pre- and post-processing a search query, the same object will be used for both calls (so preserving some data or state locally is possible).
Parameters
\Drupal\search_api\Query\ResultSetInterface $results: The search results.
Overrides IndexInterface::postprocessSearchResults
File
- src/
Entity/ Index.php, line 673
Class
- Index
- Defines the search index configuration entity.
Namespace
Drupal\search_api\EntityCode
public function postprocessSearchResults(ResultSetInterface $results) {
foreach ($this
->getProcessorsByStage(ProcessorInterface::STAGE_POSTPROCESS_QUERY) as $processor) {
$processor
->postprocessSearchResults($results);
}
}