Re: date_histogram not returning key_as_string

2014-06-16 Thread Tim Heikell
Thank you Alexander, but I got it figured out. I was storing sessionStartTime as a Unix timestamp but did not provide any mapping, so the field type was set to be a double. Once I explicitly mapped sessionStartTime to be a date my query results started including the key_as_string field. Tim

date_histogram not returning key_as_string

2014-06-05 Thread Tim Heikell
Sorry for the noob question, but is there some setting I am missing? It's not clear to me why I'm not getting a key_as_string field in my results. I'm running v1.1.0, here is my search: GET /_all/_search { aggs: { totalsByHour: { date_histogram: { field: sessionStartTime,