# Commit Changes (Java API)

**URL:** <https://discuss.elastic.co/t/commit-changes-java-api/46169>\
**Category:** Elasticsearch\
**Created:** [April 3, 2016, 2:01pm UTC](https://discuss.elastic.co/t/commit-changes-java-api/46169 "2016-04-03T14:01:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trevor\_Oakley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trevor_oakley/32/13433_2.png) [@Trevor\_Oakley](https://discuss.elastic.co/u/Trevor_Oakley)\
**Post date:** [April 3, 2016, 2:01pm UTC](https://discuss.elastic.co/t/commit-changes-java-api/46169/1 "2016-04-03T14:01:06Z")

</div>

My system stops under volume with various errors related to the Transport client. I want to commit changes. I understand the solution needs to use a flush. Has anyone code examples of using flush to commit changes under Java?

---

<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 5, 2017, 11:02pm UTC](https://discuss.elastic.co/t/commit-changes-java-api/46169/2 "2017-07-05T23:02:51Z")

</div>

Closed on July 5, 2017, 11:02pm UTC


