Elasticsearch Mapping – Rename existing field

转自:stackoverflow.com

PUT _ingest/pipeline/my_rename_pipeline
{
“description” : “describe pipeline”,
“processors” : [
{
“rename”: {
“field”: “fieldCamelcase”,
“target_field”: “fieldCamelCase”
}
}
]
}

POST _reindex
{
“source”: {
“index”: “source”
},
“dest”: {
“index”: “dest”,
“pipeline”: “my_rename_pipeline”
}
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注