# Java Update Request (Upsert) pipeline not (supported) / working

**URL:** <https://discuss.elastic.co/t/java-update-request-upsert-pipeline-not-supported-working/141634>\
**Category:** Elasticsearch\
**Created:** [July 25, 2018, 5:16pm UTC](https://discuss.elastic.co/t/java-update-request-upsert-pipeline-not-supported-working/141634 "2018-07-25T17:16:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 26, 2018, 8:34am UTC](https://discuss.elastic.co/t/java-update-request-upsert-pipeline-not-supported-working/141634/6 "2018-07-26T08:34:59Z")

</div>

Why using update API then? Why not reindexing the whole document?

Update API should use IMHO only in 2 cases:

- Huge documents, like megabytes of Json
- Usage of the attachment processor with an array or with big binary documents

Otherwise, I'd recommend using the index API.

---

_[View the full topic](https://discuss.elastic.co/t/java-update-request-upsert-pipeline-not-supported-working/141634)._
