Date_histogram on an array


#1

hi

my problem :
I have a field of type array of date :

"creneau": ["2015-09-08T09:00:00", "2015-09-08T09:15:00", "2015-09-08T10:30:00", "2015-09-08T10:45:00"]

"creneau": { "format": "strict_date_optional_time||epoch_millis", "type": "date" }

I make an aggrégation with an interval of 15 minutes:

"date_histogram" : {
"field" : "creneau",
"interval" : "15m",

In this example, the field " creneau " match only once and not 4 times.
I make an error?
do you have a solution?

cdt
patrick


(Mark Walkom) #2

You cannot work around this, how can it split one document 4 times like this?

What are you trying to solve here, there may be a better way to do it.


#3

ok, thx


(system) #4