For my third column, I would like to use the values that I get in both columns and do another script to calculate the values (it's the working days between the 2 dates)
Is there something like : def mymin = aggregation on doc['time'].value; def mymax = aggregation on doc['time'].value; return mymax - mymin;
I already managed to have the difference between 2 dates, the issue here is that "date1" and "date2" are the results of metric aggregations. I don't have these fields in my document, actually I'm using the same field to retrieve both of the dates, date1 is the min of this field and date2 is the max of this field.
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.