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",
        "interval": "day",
        "format": "yyyy-MM-dd"
      }
    }
  }
}

and here are my results:

   "aggregations": {
      "totalsByHour": {
         "buckets": [
            {
               "key": 1401667200000,
               "doc_count": 15973
            },
            {
               "key": 1401753600000,
               "doc_count": 11996
            },
            {
               "key": 1401840000000,
               "doc_count": 14
            },
            {
               "key": 1401926400000,
               "doc_count": 4031
            }
         ]
      }
   }

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/0acca250-ab7f-48a8-a73a-648f7f544dcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to