Re: Search on an old version of a record?

Hi,
I don't think it is possible.
Lukas
Dne 10.4.2011 19:50 "Rob Faraj" rfaraj@gmail.com napsal(a):

Is it possible to get the contents of previous versions of a document?
I tried something like this, but it returned the most recent
_version.

curl -XGET http://localhost:9200/twitter/tweet/1?version=2

Just verifying what Lukas said, its not possible.
On Sunday, April 10, 2011 at 9:06 PM, Lukáš Vlček wrote:

Hi,
I don't think it is possible.
Lukas
Dne 10.4.2011 19:50 "Rob Faraj" rfaraj@gmail.com napsal(a):

Is it possible to get the contents of previous versions of a document?
I tried something like this, but it returned the most recent
_version.

curl -XGET http://localhost:9200/twitter/tweet/1?version=2

You can certainly implement it yourself if you want, i.e. index those changes as documents.
On Sunday, April 10, 2011 at 11:41 PM, Rob Faraj wrote:

Thanks. I was thinking about using it to display the a historical view
of document changes. Might be handy in troubleshooting situations
also. Regardless, just a nice to have.

On Apr 10, 3:57 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Just verifying what Lukas said, its not possible.

On Sunday, April 10, 2011 at 9:06 PM, Lukáš Vlček wrote:

Hi,
I don't think it is possible.
Lukas
Dne 10.4.2011 19:50 "Rob Faraj" rfa...@gmail.com napsal(a):

Is it possible to get the contents of previous versions of a document?
I tried something like this, but it returned the most recent
_version.

curl -XGEThttp://localhost:9200/twitter/tweet/1?version=2

Hi Rob,

I was into this pitfall myself. It seems the version attribute is used
for handling concurrent updates to the record. So it is kind of a
locking scheme.
I would have preferred a different name for the attribute to not
confuse users (myself included :)). If it were named lockid it would be
more intuitive I think. Just a thought.

Rob Faraj skrev 2011-04-10 19:50:

Is it possible to get the contents of previous versions of a document?
I tried something like this, but it returned the most recent
_version.

curl -XGET http://localhost:9200/twitter/tweet/1?version=2

Thats how its named in all other systems I know, including optimistic concurrency control with databases.
On Tuesday, April 12, 2011 at 10:53 AM, Kristian Jörg wrote:

Hi Rob,

I was into this pitfall myself. It seems the version attribute is used
for handling concurrent updates to the record. So it is kind of a
locking scheme.
I would have preferred a different name for the attribute to not
confuse users (myself included :)). If it were named lockid it would be
more intuitive I think. Just a thought.

Rob Faraj skrev 2011-04-10 19:50:

Is it possible to get the contents of previous versions of a document?
I tried something like this, but it returned the most recent
_version.

curl -XGET http://localhost:9200/twitter/tweet/1?version=2