Elasticsearch中如何向正在使用的index添加mapping映射字段?

提问者:帅平 问题分类:搜索引擎
Elasticsearch中如何向正在使用的index添加mapping映射字段?

 您阅读本篇文章共花了: 

1 个回答
绿水长流
绿水长流
添加mapping映射字段的语法如下:
put /${index_name}/_mapping
json

具体案例如下:
put  http://192.168.31.20:9200/devices/_mapping
{
	"properties": {
		"device_manufacturer": {
			"type": "keyword"
		}
	}
}
发布于:1年前 (2022-11-16) IP属地:四川省
我来回答