Actually have sample data like
Want to have date difference and value difference between the docs is it possible?
I don't think so.
You should better solve that problem at index time IMO. Like getting the old document if any then updating it (use the document id).
If the document existed, then compute a duration.
But all that needs to happen on the application side.
If you are using logstash there is a nice plugin for that: aggregate
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.