# Is it possible to get older versions of any document

**URL:** https://discuss.elastic.co/t/is-it-possible-to-get-older-versions-of-any-document/7019
**Category:** Elasticsearch
**Created:** [March 15, 2012, 5:23pm UTC](https://discuss.elastic.co/t/is-it-possible-to-get-older-versions-of-any-document/7019 "2012-03-15T17:23:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![canavar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/canavar/32/2950_2.png) [@canavar](https://discuss.elastic.co/u/canavar)
#### Post date: [March 15, 2012, 5:23pm UTC](https://discuss.elastic.co/t/is-it-possible-to-get-older-versions-of-any-document/7019/1 "2012-03-15T17:23:29Z")

</div>

Hi all,

I am definitely a newbie. I searched the group but could not find an answer  
to my question. There is the cool Update API. Every update increases the  
version number of the document by 1. I wonder if it is possible to get the  
older versions of any document. I mean the \_source of the document  
specifically.  
If it is possible then there would be no need for other versioning logic.

Thanks.

---

<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: [March 15, 2012, 9:52pm UTC](https://discuss.elastic.co/t/is-it-possible-to-get-older-versions-of-any-document/7019/2 "2012-03-15T21:52:00Z")

</div>

No. I don't think you can.  
Version number is only used to help developpers managing concurrency when  
updating documents.

Document content of previous version is not stored. Only the latest version  
is in Lucene indexes.

HTH  
David

Le 15 mars 2012 à 18:23, canavar [fehmican.saglam@gmail.com](mailto:fehmican.saglam@gmail.com) a écrit :

> I am definitely a newbie. I searched the group but could not find an answer  
> to my question. There is the cool Update API. Every update increases the  
> version number of the document by 1. I wonder if it is possible to get the  
> older versions of any document. I mean the \_source of the document  
> specifically.  
> If it is possible then there would be no need for other versioning logic.
> 
> Thanks.

--  
David Pilato  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet

---

<div class="post-metadata">

### Author: ![canavar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/canavar/32/2950_2.png) [@canavar](https://discuss.elastic.co/u/canavar)
#### Post date: [March 15, 2012, 10:13pm UTC](https://discuss.elastic.co/t/is-it-possible-to-get-older-versions-of-any-document/7019/3 "2012-03-15T22:13:19Z")

</div>

Thanks David.

On Thursday, March 15, 2012 11:52:00 PM UTC+2, David Pilato wrote:

> No. I don't think you can.
> 
> Version number is only used to help developpers managing concurrency when  
> updating documents.
> 
> Document content of previous version is not stored. Only the latest  
> version is in Lucene indexes.
> 
> HTH
> 
> David
> 
> Le 15 mars 2012 à 18:23, canavar [fehmican.saglam@gmail.com](mailto:fehmican.saglam@gmail.com) a écrit :
> 
> Hi all,
> 
> I am definitely a newbie. I searched the group but could not find an  
> answer to my question. There is the cool Update API. Every update increases  
> the version number of the document by 1. I wonder if it is possible to get  
> the older versions of any document. I mean the \_source of the document  
> specifically.  
> If it is possible then there would be no need for other versioning logic.
> 
> Thanks.
> 
> --  
> David Pilato  
> [http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
> Twitter : @dadoonet

---

<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:35am UTC](https://discuss.elastic.co/t/is-it-possible-to-get-older-versions-of-any-document/7019/4 "2017-07-06T03:35:59Z")

</div>


