Incorrect configuration path for max_result_window
Following the fix for Add max_result_window setting to ES config, the code is attempting to read max_result_window from the wrong location in the index configuration array. It's currently looking for $indexConfig['index.max_result_window'], but the actual configuration structure stores this value at $indexConfig['settings']['max_result_window'].