Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11841

Removing values from a multivalued EnumField by Atomic Update does not work when using XML as codec

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                thomas.woeckinger Thomas Wöckinger
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 40m
                  3h 40m