[ https://issues.apache.org/jira/browse/SOLR-11264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cassandra Targett updated SOLR-11264: ------------------------------------- Component/s: Schema and Analysis > 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 > Components: Schema and Analysis > 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: > {quote}<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"/>{quote} > Perform an update request to set a single UUID: (works fine) > {quote}{{doc.setField("uuid_uuids","new > HashMap<String,Object>(1){{put("set",UUID.randomUUID().toString());}});}}{quote} > Perform an update request to add an additional UUID: (throws exception) > {quote}{{doc.setField("uuid_uuids","new > HashMap<String,Object>(1){{put("add",UUID.randomUUID().toString();}});}} > {quote} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org