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

Yonik Seeley commented on SOLR-7217:
------------------------------------

Trimming keys allows things like the following to work (notice the json.jacet 
query parameter on the next line) and leads to less surprising behavior.

{code}
$ curl http://localhost:8983/solr/query -d 'q=*:*&rows=0&
 json.facet={
   categories:{
     terms:{
       field : cat,
       sort : { x : desc},
       facet:{
         x : "avg(price)",
         y : "sum(price)"
       }
     }
   }
 }
'
{code}

> Auto-detect HTTP body content-type
> ----------------------------------
>
>                 Key: SOLR-7217
>                 URL: https://issues.apache.org/jira/browse/SOLR-7217
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>         Attachments: SOLR-7217.patch
>
>
> It's nice to be able to leave off the specification of content type when hand 
> crafting a request (i.e. from the command line) and for our documentation 
> examples.
> For example:
> {code}
> curl http://localhost:8983/solr/query -d '
> {
>   query:"hero"
> }'
> {code}
> Note the missing 
> {code}
> -H 'Content-type:application/json'
> {code}
> that would otherwise be needed everywhere



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

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

Reply via email to