I have a date range set to field -> field1
Now I need to access the same range (Only upper bound) for another field -> field2. Is it possible?
Like :-
{
"script": {
"script": "doc['field2'].value >= doc['@DashboardTimeRange_Until'].value"
}
},
Or Perhaps add a filter corresponding to Dashboard Time Range but for different field?
the scripted fields are evaluated on the server side and can only access data from the single document. I don't see a way to access the current timepicker value. For now you would have to manually add a date range filter on field2 and adjust its boundaries separately.
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.