eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\Native::findRaw PHP Method

findRaw() public method

Finds and returns documents of a given $type for a given $query string.
public findRaw ( string $query, string $type ) : Message
$query string
$type string
return Message
    public function findRaw($query, $type)
    {
        $response = $this->client->request('GET', "/{$this->indexName}/{$type}/_search", new Message(array('Content-Type' => 'application/json'), $query));
        return $response;
    }