Bulk updates not respecting _version

Hello,
I need the same functionality.
Also is there a way to access _version field in script?

Thanks

On Monday, October 28, 2013 7:35:45 AM UTC+2, Anand Nalya wrote:

Hi,

I'm trying to do bulk updates on a index with _version in the conditional
but ES is updating the document even when there is a version conflict:

{"update":{"_index":"urls","_type":"url","_version":1,"_id":"ef2ec2fada4c476c0a7d744236ad9551"}}
{"doc":{"p1":"abc"}}

{"update":{"_index":"urls","_type":"url","_version":1,"_id":"5e343487dc6c0ad2b264ffbaffd946c9"}}
{"doc":{"p2":"xyz"}}

_version is work properly when I update the documents individually.

Regards,
Anand

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.