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

Dima Goldenberg updated SOLR-7709:
----------------------------------
          Component/s: contrib - DataImportHandler
          Description: 
when sending a javabin document to solr in the following format
...
...
filed_2 value_1
field_2 value_2
field_2 value_3
...
...
"field_2" will get the last value (field_2 = [value_3, ]).

using the xml instead the javabin:
"field_2" will get the all the values (field_2 = [value_1, 
                                                                       value_2,
                                                                       value_3, 
 ]).
the problem is in:
JavaBinCodec::readSolrDocument & 
JavaBinCodec::readSolrInputDocument

instead the SolrInputDocument::setField function we should use 
SolrInputDocument::addField function.

i use the 4.8.1 solr version but i pretty sure this issue is reproducible using 
older versions. 

    Affects Version/s: 4.8.1
              Summary: Solr JavaBinCodec multi valued fields take only the last 
value per document from the javabin buffer  (was: JavaBinCodec)

> Solr JavaBinCodec multi valued fields take only the last value per document 
> from the javabin buffer
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-7709
>                 URL: https://issues.apache.org/jira/browse/SOLR-7709
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 4.8.1
>            Reporter: Dima Goldenberg
>
> when sending a javabin document to solr in the following format
> ...
> ...
> filed_2 value_1
> field_2 value_2
> field_2 value_3
> ...
> ...
> "field_2" will get the last value (field_2 = [value_3, ]).
> using the xml instead the javabin:
> "field_2" will get the all the values (field_2 = [value_1, 
>                                                                        
> value_2,
>                                                                        
> value_3,  ]).
> the problem is in:
> JavaBinCodec::readSolrDocument & 
> JavaBinCodec::readSolrInputDocument
> instead the SolrInputDocument::setField function we should use 
> SolrInputDocument::addField function.
> i use the 4.8.1 solr version but i pretty sure this issue is reproducible 
> using older versions. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to