I'm using elasticsearch 1.5.0 and I have a bunch of web access logs.  Due to a glitch inserting, I omitted the response field from some records.  But this seems to have broken terms aggregations on that field:
$ curl -H 'Content-type: application/json' 'http://localhost:9200/events-default@2015.06.03/_search?pretty' -d '{
  "size": 0,
  "aggs": {
    "group": {
      "terms": {
        "field": "response"
      }
    }
  }
}'
{
  "took" : 1,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "failed" : 0
  },
  "hits" : {
    "total" : 19939,
    "max_score" : 0.0,
    "hits" : [ ]
  },
  "aggregations" : {
    "group" : {
      "doc_count_error_upper_bound" : 0,
      "sum_other_doc_count" : 0,
      "buckets" : [ ]
    }
  }
}
As you can see, there are many records in that index, but the aggregation results have no buckets! I don't think this is a simple matter of issue #5324 since there are definitely records with non-null values for that field:
$ curl -H 'Content-type: application/json' 'http://localhost:9200/events-default@2015.06.03/_search?pretty' -d '{
  "size": 0,
  "query": {
    "filtered": {
      "filter": {
        "not": {
          "missing": {
            "field": "response"
          }
        }
      }    
    }  
  }
}'
{
  "took" : 1,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "failed" : 0
  },
  "hits" : {
    "total" : 15807,
    "max_score" : 0.0,
    "hits" : [ ]
  }
}
The mapping for that field is:
          "response" : {
            "type" : "string",
            "index" : "not_analyzed",
            "doc_values" : true,
            "fielddata" : {
              "format" : "doc_values"
            }
          },
Am I overlooking something simple?