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-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 Other Changes
---------------------- ----------------------

View File

@ -1291,13 +1291,15 @@
<queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/> <queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
--> -->
<queryResponseWriter name="json" class="solr.JSONResponseWriter"> <!-- Overriding the content-type of the response writer.
<!-- For the purposes of the tutorial, JSON responses are written as For example, Default content-type of JSON is application/json. This can be overridden to
plain text so that they are easy to read in *any* browser. text/plain so that response is easy to read in *any* browser.
If you expect a MIME type of "application/json" just remove this override.
--> -->
<!--
<queryResponseWriter name="json" class="solr.JSONResponseWriter">
<str name="content-type">text/plain; charset=UTF-8</str> <str name="content-type">text/plain; charset=UTF-8</str>
</queryResponseWriter> </queryResponseWriter>
-->
<!-- <!--
Custom response writers can be declared as needed... Custom response writers can be declared as needed...

View File

@ -1291,13 +1291,15 @@
<queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/> <queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
--> -->
<queryResponseWriter name="json" class="solr.JSONResponseWriter"> <!-- Overriding the content-type of the response writer.
<!-- For the purposes of the tutorial, JSON responses are written as For example, Default content-type of JSON is application/json. This can be overridden to
plain text so that they are easy to read in *any* browser. text/plain so that response is easy to read in *any* browser.
If you expect a MIME type of "application/json" just remove this override.
--> -->
<!--
<queryResponseWriter name="json" class="solr.JSONResponseWriter">
<str name="content-type">text/plain; charset=UTF-8</str> <str name="content-type">text/plain; charset=UTF-8</str>
</queryResponseWriter> </queryResponseWriter>
-->
<!-- <!--
Custom response writers can be declared as needed... Custom response writers can be declared as needed...

View File

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