summaryrefslogtreecommitdiff
path: root/src/es5/test-last-update-es
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-11-29 18:03:08 +0100
committerChristian Pointner <equinox@spreadspace.org>2014-11-29 18:03:17 +0100
commit6b9ecfb4ec055b693bb622c65f35a4bcde6c298e (patch)
treeb360d502b88fbce2877f29a6bc1e37e957e6ab90 /src/es5/test-last-update-es
parenthub: fwd-es tries bulk-api (diff)
es5: added query for last update id
Diffstat (limited to 'src/es5/test-last-update-es')
-rwxr-xr-xsrc/es5/test-last-update-es8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/es5/test-last-update-es b/src/es5/test-last-update-es
new file mode 100755
index 0000000..44d4b93
--- /dev/null
+++ b/src/es5/test-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?pretty' -d @last-update.json