conver dynamic在win10中不能用

conver dynamic在win10中不能用,第1张

1、conver,dynamic在win10中不能用是因为电脑缺少CC软件的运行环境,需要重新下载安装win10的4点0以上的系统。

2、还可能是win10电脑缺少VC运行库,需要重新下载安装VC运行库后,再重装软件。

1.全局的关闭dynamic mapping方法如下:

打开elasticsearch.yml文件,添加一行

1

index.mapper.dynamic : false

2.单个索引的呢,如下

1

2

3

4

5

6

7

8

curl -XPUT http://localhost:9200/your_index/ -d'

{

"mappings" : {

"_default_" : {

"dynamic" : "strict"

}

}

}'

然后就可以获取到这样的mapping

1

2

http://localhost:9200/your_index/_mapping

{"your_index":{"_default_":{"dynamic":"strict","properties":{}}}}

如果索引已经有数据了,通过修改类型_defalut_的mapping来禁用dynamic mapping,貌似就不好使了,不过如果你愿意重启下es,还是可以的。

1

{"error":"StrictDynamicMappingException[mapping set to strict, dynamic introduction of [a] is not allowed]","status":400}

还一种方法是:在config/mapping/your_index/目录下新建类型配置文件:_default_.json

1

2

3

4

{ "_default_" : {

"dynamic" : "strict"

}


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/6648765.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-26
下一篇 2023-03-26

发表评论

登录后才能评论

评论列表(0条)

保存