These aggregations are working out great, but I need to return more than
one value in the bucket so we can use them in our API. The basic idea is
that we aggregate all of the category id's, but we also want the
category_name to be included in that same bucket for ease of use.
I maintain a mapping on the client side to due the lookups. Thankfully my
taxonomy is static (but somewhat large). There is a PR to do server-side
mappings, but I don't think it would apply to aggregations and is quite old.
An alternative solution would be to create compound values such as
"48885:Car Rental" and decompose the value on the client side, but this
would create a string aggregation, which could have slower performance.
These aggregations are working out great, but I need to return more than
one value in the bucket so we can use them in our API. The basic idea is
that we aggregate all of the category id's, but we also want the
category_name to be included in that same bucket for ease of use.
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.