Currently I have set index.max_result_window = 50000, we are migrating to 5.2.2 , this was working for Elastic Search 2.3.1
I am getting following error on ES 5.2.2:
QueryPhaseExecutionException[Result window is too large, from + size must be less than or equal to:  but was . See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting.]
What one should use for production environment for 5.2.2.