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

Steve Rowe updated SOLR-4891:
-----------------------------

    Attachment: SOLR-4891.patch

Simple patch preserving JSON types in {{SolrInputDocument}}, with some tests.
                
> JsonLoader should preserve field value types from the JSON content stream
> -------------------------------------------------------------------------
>
>                 Key: SOLR-4891
>                 URL: https://issues.apache.org/jira/browse/SOLR-4891
>             Project: Solr
>          Issue Type: Bug
>          Components: update
>            Reporter: Steve Rowe
>            Assignee: Steve Rowe
>            Priority: Minor
>         Attachments: SOLR-4891.patch
>
>
> JSON content streams carry some basic type information for their field 
> values, as parsed by Noggit: LONG, NUMBER, BIGNUMBER, and BOOLEAN.  
> {{JsonLoader}} should set field value object types in the 
> {{SolrInputDocument}} according to the content stream's data types. 
> Currently {{JsonLoader}} converts all non-{{String}}-typed field values to 
> {{String}}-s.
> There is a comment in {{JsonLoader.parseSingleFieldValue()}}, where the 
> convert-everything-to-string logic happens, that says "for legacy reasons, 
> single values s are expected to be strings", but other content streams' type 
> information is not flattened like this, e.g. {{JavabinLoader}}.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to