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

Noble Paul commented on SOLR-6294:
----------------------------------

Hoss more or less summed up what I was proposing

 key points

* The current json object format should not be broken.
* The {{/update/json/docs}} or {{/update/json/doc}}  (Plural is better because 
it accepts many) is a shorthand for {{/update/json?json.command=false}} . 
Actually users are free to create clean http endpoints by adding a 
{{<requestHandler>}} entry in solrconfig.xml with the params added to 
{{defaults}} . In this case we are adding this ourselves. This is why I created 
SOLR-6302 also . We should not make our solrconfig.xml ugly by adding stuff 
which everyone needs and no one should modify (other than experts)

bq.we can also change the default value of the new request param (and thus, the 
default behavior) in 5.0
I don't think we will ever be able to change that default without screwing a 
lot of users .  

> 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