2014-01-31 08:38:21 -05:00
|
|
|
---
|
|
|
|
"External GTE version":
|
|
|
|
|
2014-05-01 07:12:00 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
version_type: external_gte
|
|
|
|
version: 0
|
|
|
|
|
|
|
|
- match: { _version: 0}
|
|
|
|
|
2014-01-31 08:38:21 -05:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
version_type: external_gte
|
|
|
|
version: 5
|
|
|
|
|
|
|
|
- match: { _version: 5}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
catch: conflict
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
version_type: external_gte
|
2014-05-01 07:12:00 -04:00
|
|
|
version: 0
|
2014-01-31 08:38:21 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar2 }
|
|
|
|
version_type: external_gte
|
|
|
|
version: 5
|
|
|
|
|
|
|
|
- match: { _version: 5}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar2 }
|
|
|
|
version_type: external_gte
|
|
|
|
version: 6
|
|
|
|
|
|
|
|
- match: { _version: 6}
|