From 7b4425b096fa8c18d0db9fd9b1ae96d63ee8af55 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 1 Feb 2016 20:18:59 +0100 Subject: first kinda working version --- bin/setup.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 bin/setup.php (limited to 'bin/setup.php') diff --git a/bin/setup.php b/bin/setup.php new file mode 100755 index 0000000..7dacedd --- /dev/null +++ b/bin/setup.php @@ -0,0 +1,27 @@ +#!/usr/bin/env php +allow404 = true; +$r->send(); + +//recreate it +$r = new Elasticsearch_Request( + $GLOBALS['phinde']['elasticsearch'], + \HTTP_Request2::METHOD_PUT +); +$r->setBody( + file_get_contents(__DIR__ . '/../data/elasticsearch-mapping.json') +); +$r->send(); +?> -- cgit v1.2.3