Hi,
I am curious about the same thing. Is this possible?
I am on ES 1.0.2, and my experiments show; No.
Seem's like it should be doable though?
Thanks,
-- Chris 

On Friday, May 17, 2013 8:30:30 AM UTC-5, pgaertig wrote:
>
> Hi,
>
> Is it to possible to link "_version" special property to document's field 
> the same way as "_id" or "_timestamp" properties?
> I tried to declare mapping this way:
>
>   "_id": {
>     "path": "product_id",
>   },
>   _version: {
> *    "path": "lock_version",*
>     "version_type": "external"
>   },
>
> However "_version" is not updated to "lock_version" value when document is 
> added or updated.
> Documents which are submitted to ES in my system already contain 
> "lock_version" field. That is primarily 
> used for optimistic locking in external database system, however ES could 
> use it as well.
>
> Thanks,
> Piotr
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a9c675f7-66ae-4aac-8eca-9a9fa41b7db8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to