Please show us the _exact_ URL you’re sending as well as the response header, 
particularly the echoed params.

This is a long shot, but also take a look at any “initParams” sections in 
solrconfig.xml. The “wt” parameter you’ve specified in your select handler 
should override anything in the <defualts> section of initParams. But you’re 
handler is specifying wt in the defualts section, if your initParams have the 
json wt specified in an invariants section that would control.

I also recommend you look at your solrconfig through the admin UI, that insures 
that you’re looking at the same solrconfig that your collection is actually 
using. Then check your collections/<collection in question> to double check 
that your collection is using the configset you think it is. This latter 
assumes SolrCloud.

This is likely something in your configurations that is not as you expect.

Best,
Erick

> On Aug 7, 2020, at 10:19 AM, yaswanth kumar <yaswanth...@gmail.com> wrote:
> 
> Thanks Shawn, for looking into this.
> 
> I did make sure that no explicit parameter wt is being sent and also
> verified the logs and even that's not showing up any extra parameters. But
> it's always taking json as a default, unless I pass it explicitly as wt=xml
> which I don't want to do it here. Is there something else that I need to do
> ?
> 
> On Fri, Aug 7, 2020 at 4:23 AM Shawn Heisey <apa...@elyograg.org> wrote:
> 
>> How are you sending the query request that doesn't come back as xml? I
>> suspect that the request is being sent with an explicit wt parameter set to
>> something other than xml. Making a query with the admin ui would do this,
>> and it would probably default to json.
>> 
>> When you make a query, assuming you haven't changed the logging config,
>> every parameter in that request can be found in the log entry for the
>> query, including those that come from the solrconfig.xml.
>> 
>> Sorry about the top posted reply. It's the only option on this email app.
>> My computer isn't available so I'm on my phone.
>> 
>> ⁣Get TypeApp for Android ​
>> 
>> On Aug 6, 2020, 21:52, at 21:52, yaswanth kumar <yaswanth...@gmail.com>
>> wrote:
>>> Can someone help me on this ASAP? I am using solr 8.2.0 and below is
>>> the
>>> snippet from solrconfig.xml for one of the configset, where I am trying
>>> to
>>> default the results into xml format but its giving me as a json result.
>>> 
>>> <requestHandler name="/select" class="solr.SearchHandler">
>>>   <!-- default values for query parameters can be specified, these
>>>        will be overridden by parameters in the request
>>>     -->
>>>   <lst name="defaults">
>>>     <str name="echoParams">all</str>
>>>     <int name="rows">10</int>
>>>     <!-- Default search field-->
>>>        <str name="df">pkey</str>
>>>        <str name="wt">xml</str>
>>>   </lst>
>>> 
>>> Can some one let me know if I need to do something more to always get a
>>> solr /select query results as XML??
>>> --
>>> Thanks & Regards,
>>> Yaswanth Kumar Konathala.
>>> yaswanth...@gmail.com
>> 
>> 
> 
> -- 
> Thanks & Regards,
> Yaswanth Kumar Konathala.
> yaswanth...@gmail.com

Reply via email to