# Write consistency on a single node cluster

**URL:** <https://discuss.elastic.co/t/write-consistency-on-a-single-node-cluster/56542>\
**Category:** Elasticsearch\
**Created:** [July 27, 2016, 3:16pm UTC](https://discuss.elastic.co/t/write-consistency-on-a-single-node-cluster/56542 "2016-07-27T15:16:38Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [July 29, 2016, 8:57am UTC](https://discuss.elastic.co/t/write-consistency-on-a-single-node-cluster/56542/11 "2016-07-29T08:57:29Z")

</div>

> [@ndtreviv](#):
>
> The java client returns the version as being -1.

This was simply because I was not putting `setVersion(true)` on my query call. D'oh!

---

_[View the full topic](https://discuss.elastic.co/t/write-consistency-on-a-single-node-cluster/56542)._
