Nest C# Remove Setting from Index

(Kim Kruse Hansen) #1


I have this C# code to add a setting to an index:

                var req = new UpdateIndexSettingsRequest();
                req.FlatSettings = true;
                req.FilterPath = new[] { index };
                req.IndexSettings = new IndexSettings();

                 req.IndexSettings.Add("index.routing.allocation.require.box_type", boxtype);

                var rspUpdate = c.UpdateIndexSettings(req);

But how do I remove this setting again? I cant use "" or null .


(system) #2

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