summaryrefslogtreecommitdiff
path: root/src/es5/last-update.json
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/last-update.json
parenthub: fwd-es tries bulk-api (diff)
es5: added query for last update id
Diffstat (limited to 'src/es5/last-update.json')
-rw-r--r--src/es5/last-update.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/es5/last-update.json b/src/es5/last-update.json
new file mode 100644
index 0000000..77146a3
--- /dev/null
+++ b/src/es5/last-update.json
@@ -0,0 +1,9 @@
+{
+ "query": {
+ "match": { "SourceHubUuid": "dd0c7f5c-82f0-4b95-8b5c-0559b2d976c3" }
+ },
+ "aggregations": {
+ "last-id" : { "max" : { "field": "SourceHubDataUpdateId" } }
+ }
+}
+