Hi
I tried to set the default response writer for admin operations to JSON by
putting the following in solrconfig.xml:
<queryResponseWriter name="json" class="solr.JSONResponseWriter"
*default="true"*>
<!-- For the purposes of the tutorial, JSON responses are written as
plain text so that they are easy to read in *any* browser.
If you expect a MIME type of "application/json" just remove this
override.
-->
<str name="content-type">text/plain; charset=UTF-8</str>
</queryResponseWriter>
However, when I send a request, e.g.:
curl -i -X GET http://localhost:8983/solr/admin/collections?action=LIST
I still get the response in XML, where if I specify &wt=json I get it back
in JSON.
I tried that on vanilla Solr 5.1.0 following these steps:
1. Add the above section to basic_configs\conf\solrconfig.xml (copied
from tech_products...)
2. Start Solr bin\solr -e cloud and specify basic_configs in the wizard
3. Send the above curl command when the nodes are up
When I go to Solr Admin UI and view the configuration in zookeeper of
"gettingstarted", I see this section is included in solrconfig.xml.
Any ideas?
Shai