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 2018/01/10 13:46: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=16320257#comment-16320257 ]
Thomas Wöckinger commented on SOLR-11841:
-----------------------------------------
I think all versions which are using XML to communicate are affected
> 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
>
> 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
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org