[
https://issues.apache.org/jira/browse/SOLR-4891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13674609#comment-13674609
]
Steve Rowe commented on SOLR-4891:
----------------------------------
If there are no objections I'll commit this later today.
> 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: [email protected]
For additional commands, e-mail: [email protected]