Does elasticsearch support deep aggregations? (nested aggregation in nested aggregation). To make agg of a nested object inside a nested object. Specifically to count docs.
If so, please give me an example.
"Nested" can be a reserved word in elasticsearch. Do you mean in the formal sense of nested field types and the nested type of aggregation or the more general sense of nesting JSON expressions?
Let me give an example:
Suppose you have a ES document like this:
{
IP:[{
Address: ip,
geoip: {
Country: string
}
},
{...}]
}
Both geoip and IP are nested objects
I want to count the ips (from the array field of nested objects IP), based on their country.
USA: 5
Great Britain:2
My understanding is a single pipeline can include multiple processors and the geoip plugin describes itself as a processor so should be configurable as one of a sequence of processors in a pipeline.
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.