Date Histogram Aggregation


#1

my docs :
"periode": [
{ "start": "2015-09-07T09:00:00.000Z","end": "2015-09-07T10:15:00.000Z"},
{ "start": "2015-09-07T11:15:00.000Z","end": "2015-09-07T12:30:00.000Z"},
]
"periode": [
{ "start": "2015-09-07T09:00:00.000Z","end": "2015-09-07T10:15:00.000Z"},
]

i would like a kind of Date Histogram Aggregation to count documents by interval but with a condition : start before the interval or end after the interval.
in this sample, in interval 09:15-09h30 (interval = 15 m) i have 3 docs


(system) #2