We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To reproduce
curl -XPOST http://localhost:9200/test/test/1 -d'{ "field": "value1" }'
The internal version is now 1.
Now index again:
curl -XPOST http://localhost:9200/test/test/1 -d'{ "field": "value2" }'
Internal version is now 2.
Try to update using version=1 (should fail)
curl -XPOST "http://localhost:9200/test/test/1/_update?version=1" -d'{ "doc": { "field": "value3" } }'
Which doesn't fail with a version conflict but returns:
{"ok":true,"_index":"test","_type":"test","_id":"1","_version":3,"_previous_version":2}
PS. The java api's UpdateRequestBuilder doesn't have a setVersion method
The text was updated successfully, but these errors were encountered:
1786293
bleskes
Successfully merging a pull request may close this issue.
To reproduce
The internal version is now 1.
Now index again:
Internal version is now 2.
Try to update using version=1 (should fail)
Which doesn't fail with a version conflict but returns:
PS. The java api's UpdateRequestBuilder doesn't have a setVersion method
The text was updated successfully, but these errors were encountered: