You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adam Holley (JIRA)" <ji...@apache.org> on 2017/08/20 18:43:00 UTC

[jira] [Updated] (SOLR-11264) Multivalued solr.UUIDField throws exception but updates field

     [ 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:
<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();}});



  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:
> <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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org