Adam Holley created SOLR-11264:
----------------------------------
Summary: Multivalued solr.UUIDField throws exception but updates
field
Key: SOLR-11264
URL: https://issues.apache.org/jira/browse/SOLR-11264
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Affects Versions: 6.6
Reporter: Adam Holley
Priority: Minor
Using the add operator on a multiValued UUID field throws an
exception:TransactionLog doesn't know how to serialize class java.util.UUID;
try implementing ObjectResolver?
However even with the exception the field is updated.
>From schema.xml:
{{<fieldType name="uuid" class="solr.UUIDField" indexed="true" />
<dynamicField name="*_uuid" type="uuid" indexed="true" stored="true"/>
<dynamicField name="*_uuids" type="uuid" indexed="true" stored="true"
multiValued="true"/>
}}
Perform an update request to set a single UUID: (works fine)
{{doc.setField("uuid_uuids","new
HashMap<String,Object>(1){{put("set",UUID.randomUUID().toString());}});}}
Perform an update request to add an additional UUID: (throws exception)
{{doc.setField("uuid_uuids","new
HashMap<String,Object>(1){{put("add",UUID.randomUUID().toString();}});}}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]