lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-6294) The JsonLoader should accept a single doc without wrapping in an array
Date Tue, 29 Jul 2014 12:25:39 GMT

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

Noble Paul updated SOLR-6294:
-----------------------------

    Description: 
{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
{noformat}
curl http://localhost:8983/solr/update/json -H 'Content-type:application/json' -d '
 {"id" : "TestDoc1", "title" : "test1"},
'
{noformat}


  was:
{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
{noformat}
curl http://localhost:8983/solr/update/json -H 'Content-type:application/json' -d '
 {"id" : "TestDoc1", "title" : "test1"},
'




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


Mime
View raw message