You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2008/07/11 23:16:31 UTC

[jira] Resolved: (SOLR-625) addField throws exception in SolrDocument

     [ https://issues.apache.org/jira/browse/SOLR-625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley resolved SOLR-625.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

committed.  Thanks!

> addField throws exception in SolrDocument
> -----------------------------------------
>
>                 Key: SOLR-625
>                 URL: https://issues.apache.org/jira/browse/SOLR-625
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Priority: Trivial
>             Fix For: 1.3
>
>         Attachments: SOLR-625.patch
>
>
> The following code throws Exception with SolrDocument
> {code:java}
> SolrDocument doc = new SolrDocument();
> doc.setField("id",new String []{"a","b"});
> doc.addField("id","c");
> {code}
> Exception
> {code}
> Exception in thread "main" java.lang.UnsupportedOperationException
> 	at java.util.AbstractList.add(AbstractList.java:151)
> 	at java.util.AbstractList.add(AbstractList.java:89)
> 	at org.apache.solr.common.SolrDocument.addField(SolrDocument.java:136)
> 	at Test.main(Test.java:145)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.