2013-06-23 16:03:05 -04:00
|
|
|
---
|
|
|
|
"External version":
|
2013-07-01 09:58:23 -04:00
|
|
|
|
2013-06-23 16:03:05 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
version_type: external
|
|
|
|
version: 5
|
2013-07-01 09:58:23 -04:00
|
|
|
|
2013-06-23 16:03:05 -04:00
|
|
|
- match: { _version: 5}
|
2013-07-01 09:58:23 -04:00
|
|
|
|
2013-06-23 16:03:05 -04:00
|
|
|
- do:
|
|
|
|
catch: conflict
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
version_type: external
|
|
|
|
version: 5
|
2013-07-01 09:58:23 -04:00
|
|
|
|
2013-06-23 16:03:05 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
version_type: external
|
|
|
|
version: 6
|
2013-07-01 09:58:23 -04:00
|
|
|
|
2013-06-23 16:03:05 -04:00
|
|
|
- match: { _version: 6}
|