# \[hadoop\] Add to List

**URL:** https://discuss.elastic.co/t/hadoop-add-to-list/15861
**Category:** Elasticsearch
**Created:** [February 17, 2014, 10:02pm UTC](https://discuss.elastic.co/t/hadoop-add-to-list/15861 "2014-02-17T22:02:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![John\_Pauley](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@John\_Pauley](https://discuss.elastic.co/u/John_Pauley)
#### Post date: [February 17, 2014, 10:02pm UTC](https://discuss.elastic.co/t/hadoop-add-to-list/15861/1 "2014-02-17T22:02:21Z")

</div>

New to elasticsearch, so hopefully the question makes sense... Using  
elasticsearch-hadoop (1.3.0.M2-yarn), is it possible to add to a list? I am  
currently populating elasticsearch from a m/r job, but it updates the  
object as opposed to add an object to the list. I would like to accomplish  
something like the following from the update documentation:

We can also add a tag to the list of tags (note, if the tag exists, it will  
still add it, since its a list):

curl -XPOST 'localhost:9200/test/type1/1/\_update' -d '{  
"script" : "ctx.\_source.tags += tag",  
"params" : {  
"tag" : "blue"  
}  
}'

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8d177c28-498d-4466-9737-846623ab4dd9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8d177c28-498d-4466-9737-846623ab4dd9%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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: [July 6, 2017, 1:49am UTC](https://discuss.elastic.co/t/hadoop-add-to-list/15861/2 "2017-07-06T01:49:34Z")

</div>


