date_histogram against empty index results in ArrayIndexOutOfBoundsException #5179
I am using 1.0.0. and see:
when running date_histogram query. It happens when I run the query on the whole index while index is empty, or when I run the query on some type which has no documents (while other types in the index have docs).
Steps to reproduce:
In the example above, even though you created a default mapping, you didn't actually index anything and no concrete mappings were created on the index.
In any case... I'll fix it soon...
Thx for reporting!
ps, you can remove the