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

ASF subversion and git services commented on SOLR-12127:
--------------------------------------------------------

Commit 54aff4ac7d910155ba9a1dda915e6b1f1f29c68b in lucene-solr's branch 
refs/heads/master from Munendra S N
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=54aff4a ]

SOLR-12127: set op with null or empty list val should be atomic update

* Inplace update supports set and inc operation but when null or
  empty list is specified with set op, then it should always be treated
  as atomic update since this case is equivalent to removing field
  from the document


> Using atomic updates to remove docValues type dynamic field does not work
> -------------------------------------------------------------------------
>
>                 Key: SOLR-12127
>                 URL: https://issues.apache.org/jira/browse/SOLR-12127
>             Project: Solr
>          Issue Type: Bug
>          Components: update
>    Affects Versions: 6.6.2, 7.2
>            Reporter: Oliver Kuldmäe
>            Assignee: Ishan Chattopadhyaya
>            Priority: Critical
>         Attachments: SOLR-12127.patch, SOLR-12127.patch, SOLR-12127.patch, 
> SOLR-12127.patch
>
>
> I have defined a dynamic field which is stored=false, indexed=false and 
> docValues=true. Attempting to set this field's value to null via atomic 
> update does not remove the field from the document. However, the document's 
> version is updated. Using atomic updates to set a value for the field does 
> work. Tested on 6.6.2 and 7.2.1. 
> An example of a non-working update query:
> {code:java}
> <update>
>     <add>
>         <doc>
>             <field name="id">372335</field>
>             <field name="removed_field_262884_i_dv" update="set" null="true"/>
>         </doc>
>     </add>
> </update>
> {code}
>  
> An example of a working update query:
> {code:java}
> <update>
>     <add>
>         <doc>
>             <field name="id">372335</field>
>             <field name="removed_field_262884_i_dv" 
> update="set">1521472499</field>
>         </doc>
>     </add>
> </update>
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to