Hi Roland, You can use init params to define global defaults: https://lucene.apache.org/solr/guide/6_6/initparams-in-solrconfig.html <https://lucene.apache.org/solr/guide/6_6/initparams-in-solrconfig.html>
Also, in the latest Solr (6.3+) you can define defaults for implicit handlers using params: https://issues.apache.org/jira/browse/SOLR-9557 <https://issues.apache.org/jira/browse/SOLR-9557> HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 3 Oct 2017, at 19:12, Roland Villemoes <r...@alpha-solutions.us> wrote: > > Thanks Emir, > > I have actually done exactly that. But the application that uses Solr > (Sitecore) is also using the admin/cores API. And for that I don't know how > to add the wt=xml - since there are not "visible" handlers? > > Thanks > Roland > > -----Original Message----- > From: Emir Arnautović [mailto:emir.arnauto...@sematext.com] > Sent: Monday, October 2, 2017 8:07 AM > To: solr-user@lucene.apache.org > Subject: Re: Solr 7 default Response now JSON instead of XML causing issues > > Hi Roland, > I guess you can use defaults in solr config to set wt to XML. Something like: > <requestHandler name=“/my_handler" class="solr.SearchHandler"> > <lst name="defaults"> > <str name=“wt">xml</str> > </lst> > </requestHandler> > > You can also use useParams=“xml_out” and in your params.json have xml params > defined group xml_out with wt: “xml” > > HTH, > Emir > >> On 2 Oct 2017, at 13:58, Roland Villemoes <r...@alpha-solutions.us> wrote: >> >> Hi >> >> Default response in Solr 7 is now JSON instead of XML >> (https://issues.apache.org/jira/browse/SOLR-10494) >> >> We are using a system that use the Solr admin/cores api for core status etc. >> and we can't really change that system. That system expects the XML >> response. And as far as I can see default also changed to JSON there. >> >> So: >> >> Are there any way I can change the admin/cores API back to responses using >> XML instead of JSON? >> >> >> /Roland Villemoes >