use httprequest wrapper to automatically check for errors
[phorkie.git] / src / phorkie / Search / Elasticsearch.php
index 0ed766b..06a0cfe 100644 (file)
@@ -20,7 +20,7 @@ class Search_Elasticsearch
      */
     public function search($term, $page = 0, $perPage = 10)
     {
-        $r = new \HTTP_Request2(
+        $r = new Database_Adapter_Elasticsearch_HTTPRequest(
             $this->searchInstance . 'repo/_search',
             \HTTP_Request2::METHOD_GET
         );