How can I download content from Elasticsearch

Read this and specifically the "Also be patient" part.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

What kind of "document" do you mean? A JSON document?

I want to download the file from elasticsearch after getting indexed by clicking download button.

Do you mean a binary file?