[ 
https://issues.apache.org/jira/browse/SOLR-13331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16800763#comment-16800763
 ] 

Thomas Wöckinger commented on SOLR-13331:
-----------------------------------------

Additional tests result in problems with following FieldType (Listing format: 
FieldType / Expected Type / Given Type):
 * BinaryField / ByteBuffer / byte[]
 * CollationField / String / ByteArrayUtf8CharSequence
 * DateRangeField / String / ByteArrayUtf8CharSequence
 * EnumField / EnumFieldValue / ByteArrayUtf8CharSequence
 * EnumFieldType / EnumFieldValue / ByteArrayUtf8CharSequence
 * ExternalFileField / String / ByteArrayUtf8CharSequence
 * ICUCollationField / String / ByteArrayUtf8CharSequence
 * LatLonPointSpatialField / String / ByteArrayUtf8CharSequence
 * LatLonType / String / ByteArrayUtf8CharSequence
 * PointType / String / ByteArrayUtf8CharSequence
 * RandomSortField / String / ByteArrayUtf8CharSequence
 * SpatialRecursivePrefixTreeFieldType / String / ByteArrayUtf8CharSequence
 * StrField / String / ByteArrayUtf8CharSequence
 * TextField / String / ByteArrayUtf8CharSequence
 * UUIDField org.apache.solr.common.SolrException: TransactionLog doesn't know 
how to serialize class java.util.UUID; try implementing ObjectResolver?

It seams there is another bug with UUIDField, i will create a different one.

>From my point of view it seems that changing the toNativeType int the class 
>org.apache.solr.schema.FieldType

public Object toNativeType(Object val) {

    if (val instanceof CharSequence) {
      return ((CharSequence) val).toString();
    }
    return val;
}

 

 

 

 

> 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
>            Priority: Critical
>
> 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

Reply via email to