In the aggregation below I need the bucketing to take account of a passed in timezone. How do I do this? Painless is java based, no? So is it possible to import some sort of timezone module and use that?
In the end this was solved using the aggregation below but at the cost of using Groovy in place of Painless and it also means the security risk of having script.engine.groovy.inline.aggs enabled. Can anyone suggest a method that is more performant and secure?
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.