You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Thomas Wöckinger (JIRA)" <ji...@apache.org> on 2019/05/10 08:48:00 UTC

[jira] [Commented] (SOLR-11841) Removing values from a multivalued EnumField by Atomic Update does not work when using XML as codec

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

Thomas Wöckinger commented on SOLR-11841:
-----------------------------------------

PR for master created [https://github.com/apache/lucene-solr/pull/665]

> Removing values from a multivalued EnumField by Atomic Update does not work when using XML as codec
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-11841
>                 URL: https://issues.apache.org/jira/browse/SOLR-11841
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Server, UpdateRequestProcessors
>    Affects Versions: 6.6.2
>         Environment: EmbeddedSolrServer, HttpSolrClient when using RequestWriter instead of BinaryRequestWriter
>            Reporter: Thomas Wöckinger
>            Priority: Major
>
> If XMLLoader is used to build SolrInputDocuments Enum values are treated as String values and not as EnumFieldValue like it is done by the binary codec.
> So the doRemove call of AtomicUpdateDocumentMerger will get String values which does not match any EnumFieldValue from the existingField values.
> The behaviour can be tested easily with  the EmbeddedSolrServer because it uses the XML codec to convert the SolrRequest.
> Just create a multivalued EnumField add some values and try to remove some with
> atomic update calls.
> The values will remain unchanged.



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

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