summaryrefslogtreecommitdiff
path: root/src/es5/last-update-es
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-11-30 18:05:29 +0100
committerChristian Pointner <equinox@spreadspace.org>2014-11-30 18:08:15 +0100
commitecc742bd62e9e25445eb763af4d8283e1d5b88f5 (patch)
treecb42732987714e8086665b9a27572bf5158d4c98 /src/es5/last-update-es
parentes5: added hub forwarding script (diff)
es5: better search_type for aggregations
Diffstat (limited to 'src/es5/last-update-es')
-rwxr-xr-xsrc/es5/last-update-es8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/es5/last-update-es b/src/es5/last-update-es
new file mode 100755
index 0000000..149a91c
--- /dev/null
+++ b/src/es5/last-update-es
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -z "$1" ]; then
+ echo "Usage: $0 <index>"
+ exit 1
+fi
+
+curl -XGET 'http://stream.elevate.at:9200/'"$1"'/dataupdate/_search?search_type=count&pretty' -d @last-update.json