[英]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? 是否可以使用ElasticSearch NEST客户端指定index.mapping.ignore_malformed设置? I am not able to find any docs or visible api methods to access this setting.
我找不到任何文档或可见的api方法来访问此设置。
Index settings can be specified using .Settings()
. 可以使用
.Settings()
指定索引设置 。 The client has methods for known extensions, and any other settings can be specified using .Setting(string setting, object value)
客户端具有用于已知扩展的方法,并且可以使用
.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. 您也可以基于每个字段指定
ignore_malformed
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.