You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2013/06/03 17:35:20 UTC

[jira] [Created] (SOLR-4891) JsonLoader should preserve field value types from the JSON content stream

Steve Rowe created SOLR-4891:
--------------------------------

             Summary: 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


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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org