Caching Indexes data

hi. We have a requirement of caching data in elastic. The cache should not be updated even if the indexes are updated. The cache will expire once the user navigates away from the screen.
Please suggest how is it possible to do it in elastic. Thank you.

Oh this sounds kind of fun! If I understand you properly you really want something more like MySQL's repeatable read transaction isolation level - take a snapshot when the user first looks at the page and hold it open until the user navigates away.

Elasticsearch supports this snapshot concept right now but only on a single query level or on a scroll query. So this is a feature request. I'd open it on github. That is the right place to talk about feature proposals I think.