Is it possible to get older versions of any document

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.

1 Like

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 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/
Twitter : @dadoonet

1 Like

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 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/
Twitter : @dadoonet