# Update multi field inner value using script processor

**URL:** https://discuss.elastic.co/t/update-multi-field-inner-value-using-script-processor/85652
**Category:** Elasticsearch
**Created:** [May 13, 2017, 6:57pm UTC](https://discuss.elastic.co/t/update-multi-field-inner-value-using-script-processor/85652 "2017-05-13T18:57:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nrmohta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nrmohta/32/120038_2.png) [@nrmohta](https://discuss.elastic.co/u/nrmohta)
#### Post date: [May 13, 2017, 6:57pm UTC](https://discuss.elastic.co/t/update-multi-field-inner-value-using-script-processor/85652/1 "2017-05-13T18:57:36Z")

</div>

Hi

We want to update multi field type field using ingest node script processor.  
For example -  
PUT /test\_index  
{  
"mappings": {  
"blogpost": {  
"properties": {  
"comments": {  
"type": "nested",  
"properties": {  
"name":  
{  
"type": "text",  
"fields": {  
"converted": {  
"type": "keyword",  
"index": "not\_analyzed"  
}  
}  
}

```
      }
    }
  }
}

```

}  
}

Script :  
PUT \_ingest/pipeline/test-pipeline  
{  
"processors" : [  
{  
"dot\_expander": {  
"field": "[comments.name](http://comments.name)"  
}  
},  
{"script": {  
"lang": "painless",  
"inline": "ctx.comments.name.converted = "test""  
}}  
]  
}

We have tried various modifications in above script like use of doc[],\_source, expand dot processor etc but no luck so far.  
Can any one just confirm whether its possible or not , to update multi field inner value using script processor.

Thanks,  
Neeraj.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 10, 2017, 7:09pm UTC](https://discuss.elastic.co/t/update-multi-field-inner-value-using-script-processor/85652/2 "2017-06-10T19:09:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
