You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2013/08/28 01:13:51 UTC

[jira] [Comment Edited] (SOLR-5193) Need better docs about Atomic Updates + Optimistic Concurrency

    [ https://issues.apache.org/jira/browse/SOLR-5193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751862#comment-13751862 ] 

Hoss Man edited comment on SOLR-5193 at 8/27/13 11:12 PM:
----------------------------------------------------------

HeXin: the basic cncept you are request already exists by using the optimistic concurrency features.

instead of a "check" operator that could only be used on the uniqueKey field, the same type of assertion can be made by sending a {{\_version\_}} of "1" which requires that the document exist (but doesn't care what it's current version is).

This isn't really documented in a straightforward manner anywhere so i've re-purposed your feature request into a documentation request...

http://yonik.com/solr/optimistic-concurrency/


                
      was (Author: hossman):
    HeXin: the basic cncept you are request already exists by using the optimistic concurrency features.

instead of a "check" operator that could only be used on the uniqueKey field, the same type of assertion can be made by sending a {{_version_}} of "1" which requires that the document exist (but doesn't care what it's current version is).

This isn't really documented in a straightforward manner anywhere so i've re-purposed your feature request into a documentation request...

http://yonik.com/solr/optimistic-concurrency/


                  
> Need better docs about Atomic Updates + Optimistic Concurrency
> --------------------------------------------------------------
>
>                 Key: SOLR-5193
>                 URL: https://issues.apache.org/jira/browse/SOLR-5193
>             Project: Solr
>          Issue Type: Improvement
>          Components: documentation
>            Reporter: HeXin
>            Priority: Minor
>
> Atomic Update features are mentioned in passing in the Ref Guide, but not explained as well as on the wiki (and doesn't refer to it as "atomic updates" so it's hard to find)
> https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-UpdatingOnlyPartofaDocument
> https://wiki.apache.org/solr/Atomic_Updates
> In particula, The Optimistic Concurrency options on atomic updatesare not really documented at all.
> ---
> (Initial issue description requested a "check" option that could be used on the uniqueKey field when doing atomic updates that would cause hte updated to fail if the uniqueKey specified did not exist -- but this type of feature is not needed since we already support the equivilent optimisitic concurrency garuntees )

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org