[ https://issues.apache.org/jira/browse/SOLR-11264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Holley updated SOLR-11264: ------------------------------- Description: 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} was: 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();}}); > 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: > {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 (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org