[ https://issues.apache.org/jira/browse/SOLR-13331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16809718#comment-16809718 ]
ASF subversion and git services commented on SOLR-13331: -------------------------------------------------------- Commit 4b86a396805ea690c9d31770ecaf783b38106000 in lucene-solr's branch refs/heads/branch_8x from Jason Gerlowski [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=4b86a39 ] SOLR-13331: Fix AtomicUpdate 'remove' ops in SolrJ The racent change introducing ByteArrayUtf8CharSequence altered the NamedLists produced by atomic-update requests so that they include instances of this class for requests coming in as javabin. This is a problem for 'remove' atomic-updates, which need to be able to compare these ByteArrayUtf8CharSequence instances with existing field values represented as Strings. equals() would always return false, and 'remove' operations would have no effect. This commit converts items as necessary to allow atomic-update operations to work as expected. > Atomic Update Multivalue remove does not work > --------------------------------------------- > > Key: SOLR-13331 > URL: https://issues.apache.org/jira/browse/SOLR-13331 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: UpdateRequestProcessors > Affects Versions: 7.7, 7.7.1, 8.0 > Environment: Standalone Solr Server > Reporter: Thomas Wöckinger > Assignee: Jason Gerlowski > Priority: Critical > Labels: patch > Fix For: 8.0 > > Attachments: Fix-SOLR13331-Add-toNativeType-implementations.patch, > SOLR-13331.patch > > > When using JavaBinCodec the values of collections are of type > ByteArrayUtf8CharSequence, existing field values are Strings so the remove > Operation does not have any effect. > The relevant code is located in class AtomicUpdateDocumentMerger method > doRemove. > The method parameter fieldVal contains the collection values of type > ByteArrayUtf8CharSequence, the variable original contains the collection of > Strings -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org