我有一个具有如下映射关系的索引,我需要将值加载到name_1字段。有人知道弹性中的什么命令会做这种事情吗?
{
"universitiesel": {
"mappings": {
"Universitiesel": {
"properties": {
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"name_1": {
"type": "keyword"
},
"name_2": {
"type": "text"
}
}
}
}
}
}
答案 0 :(得分:0)
参考
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json
来源:https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html