write down,forget
adidas eqt support ultra primeknit vintage white coming soon adidas eqt support ultra boost primeknit adidas eqt support ultra pk vintage white available now adidas eqt support ultra primeknit vintage white sz adidas eqt support ultra boost primeknit adidas eqt adv support primeknit adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red adidas eqt support ultra whiteturbo adidas eqt support ultra boost off white more images adidas eqt support ultra boost white tactile green adidas eqt support ultra boost beige adidas eqt support ultra boost beige adidas eqt support refined camo drop adidas eqt support refined camo drop adidas eqt support refined running whitecamo adidas eqt support 93 primeknit og colorway ba7506 adidas eqt running support 93 adidas eqt support 93

elasticsearch禁用dynamic mapping

<Category: Diving Into ElasticSearch> 查看评论

同名字段的问题,不好避免,干脆禁用dynamic mapping,但是又不能全局的禁用,一般情况下,dynamic mapping还是很帅的,那怎样对个别的索引进行关闭呢?

1.全局的关闭dynamic mapping方法如下:
打开elasticsearch.yml文件,添加一行

2.单个索引的呢,如下。。。

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

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

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

本文来自: elasticsearch禁用dynamic mapping