src/SearchElastic/SearchAbstract/SearchAbstract.php
protected function extractResult($query)
    {
        $result = null;
        $i = 0;
        $hits                  = sizeof($query['hits']['hits']);
        $hit                   = $query['hits']['hits'];
        $result['searchfound'] = $hits;
        while ($i < $hits) {
            $result['result'][$i] = $query['hits']['hits'][$i]['_source'];
            
            $i++;
        }
        return $result;
    }
protected function extractResult($query)
    {
        $result = null;
        $i = 0;
        $hits                  = sizeof($query['hits']['hits']);
        $hit                   = $query['hits']['hits'];
        $result['searchfound'] = $hits;
        while ($i < $hits) {
            $result['result'][$i] = $query['hits']['hits'][$i]['_source'];
            
            $i++;
        }
        return $result;
    }
protected function extractResult ( $ query ) { $ result = null ; $ i = 0 ; $ hits = sizeof ( $ query [ 'hits' ] [ 'hits' ] ) ; $ hit = $ query [ 'hits' ] [ 'hits' ] ; $ result [ 'searchfound' ] = $ hits ; while ( $ i < $ hits ) { $ result [ 'result' ] [ $ i ] = $ query [ 'hits' ] [ 'hits' ] [ $ i ] [ '_source' ] ; $ i ++ ; } return $ result ; }
Function to extract Search Result From ElasticSearch

@param  $query
@return void
Function to extract Search Result From ElasticSearch