Re: Average over buckets doc_count

2014-06-26 Thread Demetrius Nunes
quot;field": "$SubscriptionsPerUser.doc_count" }, "aggs": { "SubscriptionsPerUser": { "terms": { "field": "UserId", "min_doc_count": 0, "size": 1000 }

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_d

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

Common website analytics aggregation formulas

2014-05-02 Thread Demetrius Nunes
Hi guys, At my company we're building a platform product which has a big analytics component to it. I am intending to use elasticsearch to power that part of the platform. Most of the analytics examples that I see using elasticsearch aggregations are around systems logs & monitoring. There qu