"dynamic method [java.lang.Long, toInstant/0] not found"

Currently we are using 'LogDate' as scripted field with script doc['transactiondate'].value to convert unix time format of 'transactiondate' into human readable date format. When we apply filter with 'LogDate', conditions 'gte' & 'lt' get applied to input dates in query script that is being generated. Query script uses toInstant() method which is not valid for long value so the shards start to fail & we get error as below
"caused_by": {
"type": "illegal_argument_exception",
"reason": "dynamic method [java.lang.Long, toInstant/0] not found"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.