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

Steve Rowe edited comment on SOLR-6294 at 7/29/14 7:19 PM:
-----------------------------------------------------------

{quote}
bq. "rollback" takes no value (I think this may be a parsing bug - does JSON 
accept a value-less key?)

No, it's not valid JSON. Are you sure it's currently accepted?
{quote}

I'm wrong, I misread the source - actually "rollback" requires its value to be 
an empty object ({{JsonLoader.parseRollback()}}).


was (Author: steve_rowe):
{quote}
bq. "rollback" takes no value (I think this may be a parsing bug - does JSON 
accept a value-less key?)

No, it's not valid JSON. Are you sure it's currently accepted?
{quote}

I'm wrong, I misread the source - actually "rollback" requires its value to be 
an empty object ({{JsonLoader.parseRollback()}}.

> The JsonLoader should accept a single doc without wrapping in an array
> ----------------------------------------------------------------------
>
>                 Key: SOLR-6294
>                 URL: https://issues.apache.org/jira/browse/SOLR-6294
>             Project: Solr
>          Issue Type: Bug
>          Components: update
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>            Priority: Minor
>
> This is the multi document input command
> {noformat}
> curl http://localhost:8983/solr/update/json -H 
> 'Content-type:application/json' -d '
> [
>  {"id" : "TestDoc1", "title" : "test1"},
> ]'
> {noformat}
> The following also should be a valid update command for a single doc
> {noformat}
> curl http://localhost:8983/solr/update/json -H 
> 'Content-type:application/json' -d '
>  {"id" : "TestDoc1", "title" : "test1"},
> '
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to