Setting the _version value using the Java (actually any) API?


(Paul Smith) #1

I'm sure I'm in a my-one-year-old-is-sick-and-so-Ican't-sleep daze, but I
cannot for the life of my find the right way to configure a put mapping to
expose the fact that I have (or have not) set the _version field to be
'external' as is defined here:

http://www.elasticsearch.org/guide/reference/api/index_.html (Versioning
section)

I don't know exactly where I'm supposed to set "version_type" to be
"external".

Help ?

Paul


(Paul Smith) #2

paul => LAME. 60 seconds after I post this I see the
setVersion/VersionType on the IndexRequestBuilder.. I was looking in the
nested setSource area...

sigh sorry!

On 9 August 2011 14:17, Paul Smith tallpsmith@gmail.com wrote:

I'm sure I'm in a my-one-year-old-is-sick-and-so-Ican't-sleep daze, but I
cannot for the life of my find the right way to configure a put mapping to
expose the fact that I have (or have not) set the _version field to be
'external' as is defined here:

http://www.elasticsearch.org/guide/reference/api/index_.html (Versioning
section)

I don't know exactly where I'm supposed to set "version_type" to be
"external".

Help ?

Paul


(system) #3