Set max_result_window through NEST


(João Neto) #1

Hello

Is it possible to set or update the max_result_window through the NEST API?


(Russ Cam) #2

Since max_result_window is a dynamic index setting, you can update it with

var client = new ElasticClient();

var updateIndexSettingsResponse = client.UpdateIndexSettings("index_name", u => u
    .IndexSettings(di => di
        .Setting("index.max_result_window", 20000)
    )
);

(João Neto) #3

Thanks Russ!
Got it working, thank you so much


(system) closed #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.