I have the following issue, could you tell me why? thanks
- Using Elasticsearch 2.3.3
- My index has two fields: _id(sting) and doc_id(Integer)
- I use this _update_by_query in Sense, I'm trying to copy all value _id to doc_id
POST /my_index/dataset/_update_by_query?conflicts=proceed
{
"script": {
"inline": "ctx.doc_id = ctx._id.toInteger()"
}
}
- But It shows me error:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Invalid fields added to ctx [doc_id]"
}
],
"type": "illegal_argument_exception",
"reason": "Invalid fields added to ctx [doc_id]"
},
"status": 400