I have documents in my index with a duration field, represented in a period/duration format, e.g. P1DT3H4S.
Ideally I'd have Elasticsearch parse that into milliseconds in a multi-field. Apprently Elasticsearch cannot do that.
The next best thing is to convert the period into milliseconds myself and store it in a multi-field. Is this possible?
What I would like to end up with:
duration with a value like PT4M20S.
duration.millis with a corresponding value of 260000