lib/Gateway/Native.php
public function findLocations(Query $query, array $languageSettings = array())
    {
        $parameters = $this->locationQueryConverter->convert($query);

        return $this->internalFind($parameters, $languageSettings);
    }
public function findLocations(Query $query, array $languageSettings = array())
    {
        $parameters = $this->locationQueryConverter->convert($query);

        return $this->internalFind($parameters, $languageSettings);
    }
Returns search hits for the given query.

@param \eZ\Publish\API\Repository\Values\Content\Query $query
@param array $languageSettings - a map of filters for the returned fields.
Currently supported: <code>array("languages" => array(<language1>,..))</code>.

@return mixed