use configured elasticsearch address
[phorkie.git] / scripts / search.php
index af7a08573d779f94f4cd1d08413150e2145970c0..f9688bb35320bef97a5d0dd646275434a39beefc 100644 (file)
@@ -25,7 +25,7 @@ if ($GLOBALS['phorkie']['cfg']['setupcheck']) {
 }
 
 $r = new \HTTP_Request2(
-    'http://localhost:9200/phorkie/repo/_search',
+    $GLOBALS['phorkie']['cfg']['elasticsearch'] . 'repo/_search',
     \HTTP_Request2::METHOD_GET
 );
 $r->setBody(