**I am Querying for getting aggregate data based on date_range, like below**
"aggs": { "range": { "date_range": { "field": "sold", "ranges": [ { "from": "2014-11-01", "to": "2014-11-30" }, { "from": "2014-08-01", "to": "2014-08-31" } ] } } } **using this I am getting this response** "aggregations": { "range": { "buckets": [ { "key": "2014-08-01T00:00:00.000Z-2014-08-31T00:00:00.000Z", "from": 1406851200000, "from_as_string": "2014-08-01T00:00:00.000Z", "to": 1409443200000, "to_as_string": "2014-08-31T00:00:00.000Z", "doc_count": 1 }, { "key": "2014-11-01T00:00:00.000Z-2014-11-30T00:00:00.000Z", "from": 1414800000000, "from_as_string": "2014-11-01T00:00:00.000Z", "to": 1417305600000, "to_as_string": "2014-11-30T00:00:00.000Z", "doc_count": 2 } ] } } **but instead of only doc_count, I have also required complete aggregate data that satisfy this range, is threre any way to get this..please help** -- 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 elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/64ae05fa-2623-4a9d-b590-be02529d6a52%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.