Aggs

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?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/893c22d0-0153-4424-afdc-10aa7856e5b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Bogdan,

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.

On Fri, May 30, 2014 at 11:43 AM, Bogdan Ilie suportcekaut@gmail.com
wrote:

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?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/893c22d0-0153-4424-afdc-10aa7856e5b8%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/893c22d0-0153-4424-afdc-10aa7856e5b8%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j7ODAJ1PuJSP9G8uEiii3gcANr_NSuCn9N5AZL0b2x%2BBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.