protected function elasticToModel()
    {
        $items = array();

        foreach ($this->response['hits']['hits'] as $hit) {
            $items[] = $this->instance->newFromElasticResults($hit);
        }

        return $items;
    }
protected function elasticToModel()
    {
        $items = array();

        foreach ($this->response['hits']['hits'] as $hit) {
            $items[] = $this->instance->newFromElasticResults($hit);
        }

        return $items;
    }
protected function elasticToModel ( ) { $ items = array ( ) ; foreach ( $ this -> response [ 'hits' ] [ 'hits' ] as $ hit ) { $ items [ ] = $ this -> instance -> newFromElasticResults ( $ hit ) ; } return $ items ; }
Builds a list of models from Elasticsearch
results.

@return array
Builds a list of models from Elasticsearch results .