diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-11-30 18:05:29 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-11-30 18:08:15 +0100 |
commit | ecc742bd62e9e25445eb763af4d8283e1d5b88f5 (patch) | |
tree | cb42732987714e8086665b9a27572bf5158d4c98 /src/es5/last-update-es | |
parent | es5: added hub forwarding script (diff) |
es5: better search_type for aggregations
Diffstat (limited to 'src/es5/last-update-es')
-rwxr-xr-x | src/es5/last-update-es | 8 |
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 |