Average over buckets doc_count

2014-06-26 Thread Demetrius Nunes
Hi there, Is there a way to calculate the average over the doc_count result of a bucket aggregation? For instance, I have this aggregation query: GET channel/Subscription/_search { size: 1, aggs: { SubscriptionsPerUser: { terms: { field: UserId, min_doc_count: 0,

Best way to sync with MongoDB

2014-05-13 Thread Demetrius Nunes
Hi there, I know, there are a few options for performing a close to real-time integration with MongoDB, such as rivers [1], mongodb-connector [2] or manually. I've been reading about rivers being something that will be deprecated. I've tested [1] and it worked reasonably well, although I had