I'm using JSON input for a kibana visualization and I've read that passing parameters can improve performance. Can I pass something more than just a simple string or number? I'd like to pass the current date in milliseconds so I can get the week to date sales:
The JSON input is sent to Elasticsearch as is, so the Calendar.getInstance().getTimeInMillis() part isn't going to parse as it is not valid JSON. We could add a feature to Kibana that allows requesting specific parameters, but I doubt it will be very broadly useful and might be tricky to implement correctly.
Can you describe in a bit more detail what you are using this script to do? I suspect there is a way to do it without scripting, but perhaps not.
Are you able to share the aggregation part of the setting as well? I'm just trying to replicate something similar based on seeing this, and I'm missing part of your approach
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.