Closed alecklandgraf closed 9 years ago
Hi @alecklandgraf
Thanks for reporting. Actually, this problem is not new in 1.5, it is just a matter of luck that you didn't hit it before. Field lookup in the 1.x series is ambiguous. This issue is a duplicate of https://github.com/elastic/elasticsearch/issues/6108. For related problems, see the issues linked to on this issue: https://github.com/elastic/elasticsearch/issues/4081
All of this is being fixed in 2.0 by #8870.
I saw an issue with aggs not working when upgrading from 1.4.4 to 1.5.1. I was able to reproduce with generic data in both a linux server (ubuntu on CircleCI) and OS X on my laptop locally. (nice to have CI)
After some debugging, I was able to narrow it down to adding a second mapping where the second mapping's doc type has the same name as the first mapping's nested object. The following script below will return
0
ornull
aggs results for thestats
aggregation in 1.5.1 when the second mapping is applied. Without the second mapping, this isn't an issue, and in 1.4.4 this isn't an issue.Cheers, Aleck