# Bulk UDP update

**URL:** <https://discuss.elastic.co/t/bulk-udp-update/13136>\
**Category:** Elasticsearch\
**Created:** [August 8, 2013, 9:46pm UTC](https://discuss.elastic.co/t/bulk-udp-update/13136 "2013-08-08T21:46:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Freegard](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Steve\_Freegard](https://discuss.elastic.co/u/Steve_Freegard)\
**Post date:** [August 8, 2013, 9:46pm UTC](https://discuss.elastic.co/t/bulk-udp-update/13136/1 "2013-08-08T21:46:49Z")

</div>

Hi all,

Is it possible to submit updates via the Bulk UDP service?

e.g.

curl -XPOST 'localhost:9200/test/type1/1/\_update' -d '{  
"script" : "ctx.\_source.tags.contains(tag) ? ctx.op = "delete" :  
ctx.op = "none"",  
"params" : {  
"tag" : "blue"  
}  
}'

Regards,  
Steve.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 8, 2013, 10:19pm UTC](https://discuss.elastic.co/t/bulk-udp-update/13136/2 "2013-08-08T22:19:14Z")

</div>

It should work.

[http://www.elasticsearch.org/guide/reference/api/bulk-udp/](http://www.elasticsearch.org/guide/reference/api/bulk-udp/)

$ cat bulk.txt  
{ "update" : { "\_index" : "test", "\_type" : "type1", "\_id" : "1" } }  
{ "script" : "ctx.\_source.tags.contains(tag) ? ctx.op = "delete" : ctx.op =  
"none"", "params" : {"tag" : "blue" }

$ cat bulk.txt | nc -w 0 -u localhost 9700

Jörg

--  
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).  
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, 2:21am UTC](https://discuss.elastic.co/t/bulk-udp-update/13136/3 "2017-07-06T02:21:59Z")

</div>


