curl -XPOST '192.168.1.135:29200/_reindex?pretty' -H 'Content-Type: application/json' -d'
{
"source": {
"index": "index1"
},
"dest": {
"index": "index2"
},
"script": {
"inline": "ctx.rent_per_month=ctx.rent_per_month/ctx.area"
}
}'
curl -XPOST '192.168.1.135:29200/_reindex?pretty' -H 'Content-Type: application/json' -d'
{
"source": {
"index": "index1"
},
"dest": {
"index": "index2"
},
"script": {
"inline": "ctx.rent_per_month=ctx.rent_per_month/ctx.area"
}
}'