SOLR-11266: remove content-type override from _default configSet

This commit is contained in:
Munendra S N 2019-07-30 10:06:56 +05:30
parent 70a8deb0ab
commit cb94eeb491
4 changed files with 23 additions and 14 deletions

View File

@ -57,6 +57,9 @@ Upgrade Notes
* SOLR-13596: Deprecated GroupingSpecification methods are removed. (Munendra S N)
* SOLR-11266: default Content-Type override for JSONResponseWriter from _default configSet is removed. Example has been
provided in sample_techproducts_configs to override content-type. (Ishan Chattopadhyaya, Munendra S N, Gus Heck)
Other Changes
----------------------

View File

@ -1291,13 +1291,15 @@
<queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
-->
<queryResponseWriter name="json" class="solr.JSONResponseWriter">
<!-- 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>
<!-- Overriding the content-type of the response writer.
For example, Default content-type of JSON is application/json. This can be overridden to
text/plain so that response is easy to read in *any* browser.
-->
<!--
<queryResponseWriter name="json" class="solr.JSONResponseWriter">
<str name="content-type">text/plain; charset=UTF-8</str>
</queryResponseWriter>
-->
<!--
Custom response writers can be declared as needed...

View File

@ -1291,13 +1291,15 @@
<queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
-->
<queryResponseWriter name="json" class="solr.JSONResponseWriter">
<!-- 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>
<!-- Overriding the content-type of the response writer.
For example, Default content-type of JSON is application/json. This can be overridden to
text/plain so that response is easy to read in *any* browser.
-->
<!--
<queryResponseWriter name="json" class="solr.JSONResponseWriter">
<str name="content-type">text/plain; charset=UTF-8</str>
</queryResponseWriter>
-->
<!--
Custom response writers can be declared as needed...

View File

@ -1524,6 +1524,8 @@
<queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
-->
<!-- Overriding the content-type of the response writer.
-->
<queryResponseWriter name="json" class="solr.JSONResponseWriter">
<!-- For the purposes of the tutorial, JSON responses are written as
plain text so that they are easy to read in *any* browser.