Yet another reason not to use Solr. The discussion in this Jira issue is interesting.
The reason for this as I understand is to enable viewing the json response as as text in the browser.
Is there perhaps a more general feature we could turn this into? An expert level ability or parameter to set a custom content-type?
The problem right now is in the current class hierarchy of the response writers.
the NamedList is a weird datastructure for those who are not so used to Solr. You don’t know what is included in that unless you do an instanceof. Most of the users are happy to write out the documents
to handle this problem I would use ‘wt=json&wt.mime-type=application/json’