lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Wöckinger (JIRA) <j...@apache.org>
Subject [jira] [Updated] (SOLR-11841) Removing values from a multivalued EnumField by Atomic Update does not work when using XML as codec
Date Mon, 13 May 2019 09:05:00 GMT

     [ https://issues.apache.org/jira/browse/SOLR-11841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Wöckinger updated SOLR-11841:
------------------------------------
    Labels: pull-request-available ready-to-commit test  (was: pull-request-available test)

> 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
>              Labels: pull-request-available, ready-to-commit, test
>          Time Spent: 20m
>  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
(v7.6.3#76005)

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


Mime
View raw message