Iso 8601 time duration support

Does elasticsearch supports iso time duration P[n]Y[n]M[n]DT[n]H[n]M[n]S?

I would be receiving data in this format, want to index in the same format and would like the range operation available on that.

Welcome to our community! :smiley:

Take a look at https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html

Hi warklom,

There is no mention of duration here in my understanding. I am looking for iso 8601 duration support and not looking for iso timestamp

That's what we support at the moment.
Duration is something that you would need to calculate from timestamps.

Thanks. I would be receiving iso duration from a client. If there's no support of iso duration for comparison, i guess the fallback method would be to convert to integer and have it available for comparison

That's a good idea.

You can always raise a feature request on GitHub as well, that way we can gauge broader interest in this :slight_smile:

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