Taking more time in Elastic Search

I don't think it's related to index.max_result_window setting but to the size parameter you are putting in your search call.

And I think that you set it to "size": 100000. Am I right?

And I hope you remember what I wrote: