Please tell me if it is posible to make dynamic aggregation on all inner
proprietes of a field, or nested object, because i have many product every
of this product have different attributes, so there is posible to make
automatically aggs without knowing before what attributes field are named?
This is not possible since aggregations require you to provide the fields
on which to execute aggregations explicitely. An option could be to change
the way that you model your document to leverage nested documents, so that
your documents would like
{
"properties": [
{ "name": "key1", "value": "value1" },
{ "name": "key2", "value": "value2" }
]
}
instead of
{
"key1": "value1",
"key2": "value2"
}
And then Elasticsearch will let you run aggregations on properties.name
and properties.value.
Please tell me if it is posible to make dynamic aggregation on all inner
proprietes of a field, or nested object, because i have many product every
of this product have different attributes, so there is posible to make
automatically aggs without knowing before what attributes field are named?
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.