public function loadCollection(array $classes, $query)
    {
        $results = $this->sm->getClient()->search($query, $classes);
        return $this->hydrateCollection($classes, $results);
    }
public function loadCollection(array $classes, $query)
    {
        $results = $this->sm->getClient()->search($query, $classes);
        return $this->hydrateCollection($classes, $results);
    }
public function loadCollection ( array $ classes , $ query ) { $ results = $ this -> sm -> getClient ( ) -> search ( $ query , $ classes ) ; return $ this -> hydrateCollection ( $ classes , $ results ) ; }
Load and hydrate a document collection

@param array $classes
@param unknown $query
Load and hydrate a document collection