Hello,

I ran a date histogram aggregation on my time series data set and got 
results like 
      

"aggregations": {
      "hitsperfiveminute": {
         "buckets": [
           {
               "key_as_string": "09/Dec/2013:16:50:00",
               "key": 1386607800000,
               "doc_count": 23620
            },
            {
               "key_as_string": "09/Dec/2013:16:55:00",
               "key": 1386608100000,
               "doc_count": 2377
            },
            {
               "key_as_string": "09/Dec/2013:17:00:00",
               "key": 1386608400000,
               "doc_count": 3995
            }]}}

Now, I intend to put a range aggregation on the doc count in each bucket so 
as to finally get
 "aggregations": {
      "hitsrange": {
         "buckets": [
            {
               "from": 0,
               "to": 10000,
               "doc_count": 2
            },
            {
               "from": 10000,
               "to": 50000,
               "doc_count": 1
            }
         ]
      }
   }


Please help me get this operation done in a single query.

Thanks and Regards
Swarna

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c728378e-2b46-4a9f-bac6-560bb0db5d60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to