Apache Solr open-source search software
SOLR-11266: remove content-type override from _default configSet
Munendra S Ncb94eeb4919f
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 7052f77e160..135ea91ce99 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -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----------------------diff --git a/solr/core/src/test-files/solr/configsets/_default/conf/solrconfig.xml b/solr/core/src/test-files/solr/configsets/_default/conf/solrconfig.xmlindex 0a932c6d726..36f54bb6a2a 100644--- a/solr/core/src/test-files/solr/configsets/_default/conf/solrconfig.xml+++ b/solr/core/src/test-files/solr/configsets/_default/conf/solrconfig.xml@@ -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...diff --git a/solr/server/solr/configsets/_default/conf/solrconfig.xml b/solr/server/solr/configsets/_default/conf/solrconfig.xmlindex 0a932c6d726..36f54bb6a2a 100644--- a/solr/server/solr/configsets/_default/conf/solrconfig.xml+++ b/solr/server/solr/configsets/_default/conf/solrconfig.xml@@ -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...diff --git a/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml b/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xmlindex 46cc2f45a3a..dd7ebd294d7 100644--- a/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml+++ b/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml@@ -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 asplain text so that they are easy to read in *any* browser.