On 2/24/2016 9:09 AM, Mike Thomsen wrote:
> Yeah, it was a problem on my end. Not just the content-type as you
> suggested, but I had to wrap that whole JSON body so it looked like this:
>
> {
>     "params": { ///That block pasted here }
> }

I'm surprised you can get JSON to work at all.  I would expect the
needed format to be what browsers send when they do a post from an html
form, like the example Yonik tried.

Whatever is parsing those parameters, whether it is Solr or or the
servlet container, probably got more restrictive about the format in
5.x.  Solr 5.x uses Jetty 9 for running servlets.  There's no way for me
to know what container you were using with the 4.10 version.

Is there documentation somewhere for using a JSON post body with Solr?

Thanks,
Shawn

Reply via email to