=> The filter doesn't correspond to the aggregation,
hits = 108 vs agg doc_count = 123 with the key "rue de Lemaire".
Same issue with the other keys of this aggregation.
Why? How to solve it?
Thanks!
I don't have this issue with other aggs that are not nested.
When you use the nested agg you are accounting for numbers of nested docs based on properties of those nested docs.
If you want your accounting to be on root-level docs then you can use the copy_to expression in your mapping to copy nested terms to a root-level one and then do your aggs on that
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.