版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/now19930616/article/details/86656515
curl -X PUT 'localhost:9200/<index>(索引)/_mapping/<type>(类型)' -H 'Content-Type: application/json' -d'{ "properties": { "field<字段>": { "type": "text", "fielddata": true } }}'