Aggregations on unmapped fields

Hi,

We are using Elasticsearch 1.3.2 and having issues running queries with
aggregations on unmapped fields. Some documents in the index will have this
nested aggregation field but some will not. Did some initial research but
did not find a way to tell ES to ignore unmapped fields in aggregations.
Looks like there is a setting to ignore unmapped fields for sort fields but
not for aggregation fields.

This is the exception that am getting

  "status" : 500,
  "reason" : 

"RemoteTransportException[[serverXXXX][inet[/serverXXXX:9300]][search/phase/query]];
nested: AggregationExecutionException[[nested] nested path [fieldName] not
found]; "

According to this
https://github.com/elasticsearch/elasticsearch/issues/2569, aggregations
should work fine on unmapped fields. Is that in a different version of ES?

Any input is appreciated.

Thanks,
Shravanthi

--
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/976d9964-c6fe-4953-99da-bf470b887a0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks for bringing this issue up, I opened

On Tue, Dec 2, 2014 at 10:23 PM, SD shravanthid1284@gmail.com wrote:

Hi,

We are using Elasticsearch 1.3.2 and having issues running queries with
aggregations on unmapped fields. Some documents in the index will have this
nested aggregation field but some will not. Did some initial research but
did not find a way to tell ES to ignore unmapped fields in aggregations.
Looks like there is a setting to ignore unmapped fields for sort fields but
not for aggregation fields.

This is the exception that am getting

  "status" : 500,
  "reason" :

"RemoteTransportException[[serverXXXX][inet[/serverXXXX:9300]][search/phase/query]];
nested: AggregationExecutionException[[nested] nested path [fieldName] not
found]; "

According to this
https://github.com/elasticsearch/elasticsearch/issues/2569,
aggregations should work fine on unmapped fields. Is that in a different
version of ES?

Any input is appreciated.

Thanks,
Shravanthi

--
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/976d9964-c6fe-4953-99da-bf470b887a0a%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/976d9964-c6fe-4953-99da-bf470b887a0a%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/CAL6Z4j7TAY1i6Z3pnh%2Ba4R582d8b5NfcRfwY14tWGt0VAco3NQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.