Elasticsearch 插入新字段 发表于 2019-12-02 分类于 Spring Boot , Elasticsearch 阅读次数: 本文字数: 63 阅读时长 ≈ 1 分钟 在已存在的mapping基础上新增字段 1234567891011curl -XPUT 'http://127.0.0.1:9200/demo_index/_mapping/demo?pretty' -H 'Content-Type: application/json' -d'{ "properties": { "name": { "index": false, "type": "text" } }}' demo_index:索引库名indexName demo:索引库分组type name:新增字段名称 type:新增字段类型