You are here

protected function SarniaSolrService::postQuery in Sarnia 7

Stash the results as loaded entities.

Overrides SearchApiSolrService::postQuery

File

./service.inc, line 154

Class

SarniaSolrService
Search service class using Solr server.

Code

protected function postQuery(array &$results, SearchApiQueryInterface $query, $response) {
  parent::postQuery($results, $query, $response);
  $sarnia_entity_type = sarnia_entity_server_name_load($this->server->machine_name);
  entity_get_controller($sarnia_entity_type)
    ->stash($results['results']);
}