lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1870) Binary Update Request (javabin) fails when the field type of a multivalued SolrInputDocument field is a Set (or any type that is identified as an instance of iterable)
Date Tue, 25 May 2010 05:36:23 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871001#action_12871001
] 

Noble Paul commented on SOLR-1870:
----------------------------------

bq. "top level" there will be an Iterator of docs, so it overwrites that method in this way,
ignorant of the possibility that there might be other purposes for an Iterator in the stream
(like a Set of values for a field)

Iterator was created as a special type in javabin codec so that items can be streamed. Any
collection should have been written as a List of specific size. When unmarshalled , the items
always come out as a List unless we override the readIterator.
.I guess that  a better fix would be to write Collection as List I shall give a patch

> Binary Update Request (javabin) fails when the field type of a multivalued SolrInputDocument
field is a Set (or any type that is identified as an instance of iterable) 
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1870
>                 URL: https://issues.apache.org/jira/browse/SOLR-1870
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java, update
>    Affects Versions: 1.4
>            Reporter: Prasanna Ranganathan
>         Attachments: SOLR-1870-test.patch, SOLR-1870.patch
>
>
> When the field type of a field in a SolrInputDocument is a Collection based on the Set
interface, the JavaBinUpdate request fails. It works when sending the document data over XML.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message