I have a aggregation query like above where it fetches the "average price" of assets aggregated (bucketed) by name.
But, I need to select only those buckets whose average price is greater than some value (say 100). How to add that filter condition. (similar to 'having' in sql).
Doing this sort of aggregation will not scale for high-cardinality fields like asset ID on a distributed system will introduce problems . The solution to that would be to build entity-centric indexes at index time or use multiple queries and term partitioning
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.