简体   繁体   中英

How to specify index.mapping.ignore_malformed setting using NEST in ElasticSearch

Is it possible to specify index.mapping.ignore_malformed setting using ElasticSearch NEST client? I am not able to find any docs or visible api methods to access this setting.

Index settings can be specified using .Settings() . The client has methods for known extensions, and any other settings can be specified using .Setting(string setting, object value)

var client = new ElasticClient();

client.CreateIndex("my_index", c => c
    .Settings(s => s
        .Setting("index.mapping.ignore_malformed", true)
    )
);

You can also specify ignore_malformed on a per field basis too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM