Java library for Elastic Date Math

Is there a Java library that converts Elastic accepted Date Math expressions ('now', 'now-1y/d') to a Java Date object? I have a case where we accept the Elastic Date Math as we pass this along to Elastic but there is another case within this flow when it won't be sent to Elastic and instead I need to perform date functions within Java with this input.


this is an internal class of Elasticsearch, see


Thank you!

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