# Doubt on using versioning?

**URL:** <https://discuss.elastic.co/t/doubt-on-using-versioning/7119>\
**Category:** Elasticsearch\
**Created:** [March 26, 2012, 8:03am UTC](https://discuss.elastic.co/t/doubt-on-using-versioning/7119 "2012-03-26T08:03:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [March 26, 2012, 8:03am UTC](https://discuss.elastic.co/t/doubt-on-using-versioning/7119/1 "2012-03-26T08:03:42Z")

</div>

Hi

I have read blog on Versioning [http://www.elasticsearch.org/blog/2011/02/08/versioning.html](http://www.elasticsearch.org/blog/2011/02/08/versioning.html)

I have some question :

1.if 100 document will be index with \_version 1,again tried to index  
same document with same \_version value 1,then ES will create index  
with incremented version value or it will be same.

1. As I have understood that versioning is on the indexType level,  
Thus if I update any document then will the version of all the  
document in that particular type will be changed or only that  
documents version will change.

Thanks

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 27, 2012, 1:03pm UTC](https://discuss.elastic.co/t/doubt-on-using-versioning/7119/2 "2012-03-27T13:03:34Z")

</div>

On Mon, Mar 26, 2012 at 10:03 AM, sam [mishra.sameek@gmail.com](mailto:mishra.sameek@gmail.com) wrote:

> Hi
> 
> I have read blog on Versioning  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/2011/02/08/versioning.html)
> 
> I have some question :
> 
> 1.if 100 document will be index with \_version 1,again tried to index  
> same document with same \_version value 1,then ES will create index  
> with incremented version value or it will be same.

yes, the version will be incremented.

> 1. As I have understood that versioning is on the indexType level,  
> Thus if I update any document then will the version of all the  
> document in that particular type will be changed or only that  
> documents version will change.

Only the specific document version will eb incremented.

> Thanks

---

<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, 3:34am UTC](https://discuss.elastic.co/t/doubt-on-using-versioning/7119/3 "2017-07-06T03:34:40Z")

</div>


