git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use httprequest wrapper to automatically check for errors
[phorkie.git]
/
scripts
/
search.php
diff --git
a/scripts/search.php
b/scripts/search.php
index b6273b457dd8fbb4ed9fa091678ac528af8c0b2d..4de514f06ea6af2c5c273dd66f10b40815f525ca 100644
(file)
--- a/
scripts/search.php
+++ b/
scripts/search.php
@@
-24,14
+24,15
@@
if ($GLOBALS['phorkie']['cfg']['setupcheck']) {
SetupCheck::run();
}
SetupCheck::run();
}
-//delete all repos
-$r = new \HTTP_Request2(
- 'http://localhost:9200/phorkie/repo/_search',
+$r = new Database_Adapter_Elasticsearch_HTTPRequest(
+ $GLOBALS['phorkie']['cfg']['elasticsearch'] . 'repo/_search',
\HTTP_Request2::METHOD_GET
);
$r->setBody(
json_encode(
(object)array(
\HTTP_Request2::METHOD_GET
);
$r->setBody(
json_encode(
(object)array(
+ 'from' => 0,
+ 'size' => 2,
'query' => (object)array(
'bool' => (object)array(
'should' => array(
'query' => (object)array(
'bool' => (object)array(
'should' => array(