lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-625) addField throws exception in SolrDocument
Date Thu, 10 Jul 2008 05:39:31 GMT

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

Noble Paul updated SOLR-625:
----------------------------

    Attachment: SOLR-625.patch

the fix

> 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
>         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.


Mime
View raw message