Optimistic Concurrency Solr Tutorial
For an add, it's easiest to simply specify _version_ by adding it as a field in the document along with the other fields (see the Example below).
It's also possible to specify _version_ as a request parameter in the URL:
$ curl http://localhost:8983/solr/update?_version_=7 -H 'Content-type:application/json' -d '[{"id":"smalldoc"}]' |
Read full article from Optimistic Concurrency Solr Tutorial
No comments:
Post a Comment