We're trying to use the new 'missing' param in terms aggr in both ES 2.1 and 2.11 clusters and the doc_count values returned (not just for the 'missing' documents) are different compared to the same aggr without the missing param!
I would expect all the buckets to be the same doc_count values and just an additional bucket with the doc_count of those documents without this field... I can't explain why adding this missing param is returning different values for the rest of the buckets...
Any ideas? Seems like a serious bug...
(I tried to create a test index with just 5 documents and it seems to work ok there... but we have the problem with bigger indexes even an index with 3,000 docs)
{
"size": 0,
"aggs": {
"2": {
"terms": {
"field": "fieldname",
"size": 100,
"missing": "Test"
}
}
}
}