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

[jira] [Resolved] (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:all-tabpanel ]

Thomas Wöckinger resolved SOLR-11841.
-------------------------------------
    Fix Version/s: 8.3
       Resolution: Fixed

> 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
>          Components: Server, UpdateRequestProcessors
>    Affects Versions: 6.6.2, 6.6.5, 7.6, 7.7, 7.7.1, 8.0
>         Environment: EmbeddedSolrServer, HttpSolrClient when using RequestWriter instead of BinaryRequestWriter
>            Reporter: Thomas Wöckinger
>            Priority: Major
>              Labels: pull-request-available, ready-to-commit, test
>             Fix For: 8.3
>
>          Time Spent: 3h 40m
>  Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)

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