public function findRaw($query, $type) { $response = $this->client->request('GET', "/{$this->indexName}/{$type}/_search", new Message(array('Content-Type' => 'application/json'), $query)); return $response; }