Hi all - I have been trying to do the following using aggregations but have
been unable to and any help on this would be really great.
Assume that my document has two fields: A and B. I want to do the following:
Get max (A)
Get max (B)
Take difference of #1 and #2
Get the count of all documents for which the difference (computed in #3) is more than say 'x'
Does aggregation support execution of stuff like above where I believe I
will have to temporarily store the values in a variable and then use it in
the next filter (more like a nested query).
Hi Binh - Apology for the late reply. By max(A) I mean maximum value of a
field A and A can have multiple values. My document would have both field A
and field B.
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.