# Java Native script example for Update API

**URL:** <https://discuss.elastic.co/t/java-native-script-example-for-update-api/100447>\
**Category:** Elasticsearch\
**Created:** [September 14, 2017, 4:07am UTC](https://discuss.elastic.co/t/java-native-script-example-for-update-api/100447 "2017-09-14T04:07:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [September 14, 2017, 4:07am UTC](https://discuss.elastic.co/t/java-native-script-example-for-update-api/100447/1 "2017-09-14T04:07:36Z")

</div>

I couldn't find any example of java native script for upadte API.  
I found this one written by @Igor_Motov - [https://github.com/imotov/elasticsearch-native-script-example](https://github.com/imotov/elasticsearch-native-script-example)  
But then it did not have an example on Update API or reindex API.  
Kindly add one that can be used for the same.

---

<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:** [October 12, 2017, 7:34am UTC](https://discuss.elastic.co/t/java-native-script-example-for-update-api/100447/3 "2017-10-12T07:34:39Z")

</div>

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