You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2016/11/04 16:25:59 UTC

[jira] [Comment Edited] (SOLR-9721) Create a javabin writer/reader for streaming end point

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

Noble Paul edited comment on SOLR-9721 at 11/4/16 4:25 PM:
-----------------------------------------------------------

My preference is to have the type information preserved for primitive types and get rid of all the extra container objects and just have map and list

The reason is, devs would build their components looking at the json output. It's very confusing when there is a mismatch between the object structure of javabin & json

In the future, I would like to limit the types to far fewer than what we have today. it makes no sense to a user/developer when he sees a {{Map}} in JSON and the payload may contain Map/NamedList/SimpleOrderedMap/SolrDocument etc. it's not a good idea to convert any of these objects to Map just in time at client side , it is just leads to unnecessary object creation






was (Author: noble.paul):
My preference is to have the type information preserved for primitive types and get rid of all the extra container objects and just have map and list

The reason is, devs would build their components looking at the json output. It's very confusing when there is a mismatch between the object structure of javabin & json

> Create a javabin writer/reader for streaming end point
> ------------------------------------------------------
>
>                 Key: SOLR-9721
>                 URL: https://issues.apache.org/jira/browse/SOLR-9721
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Noble Paul
>         Attachments: SOLR-9721.patch
>
>




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

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