Re: wt=xml not defaulting the results to xml format
On 8/7/2020 9:30 AM, yaswanth kumar wrote: solr/PROXIMITY_DATA_V2/select?q=pkey:223_*=true=country_en=country_en What ever I am trying is not working other than sending wt=xml as a parameter while hitting the url. I tried your solrconfig.xml addition and a URL similar to yours out on 8.5.1, using the techproducts example. The results were in XML. I'm betting that you modified a copy of solrconfig.xml that is *NOT* the correct one for PROXIMITY_DATA_V2. Or that after modifying it, you did not reload the core or restart Solr. If your Solr server is in cloud mode, then you must modify the solrconfig.xml that lives in the ZooKeeper database, under the config in use for the collection. If your server is not in cloud mode, then the relevant file is most likely to be the solrconfig.xml that is in the core's "conf" directory. Modifying the version of the file under the configsets directory after the core is created will not change anything. I am also curious about the answer to Alexandre's question -- what is in the echoed parameters found in the incorrect response? Setting echoParams to "all" as you have done can be very useful for this. Thanks, Shawn
Re: wt=xml not defaulting the results to xml format
You have echoParams set to all. What does that return? Regards, Alex On Fri., Aug. 7, 2020, 11:31 a.m. yaswanth kumar, wrote: > Thanks for looking into this Erick, > > > solr/PROXIMITY_DATA_V2/select?q=pkey:223_*=true=country_en=country_en > > that's what the url I am hitting, and also I made sure that initParams is > all commented like this and also I made sure that there is no uncommneted > section defined for initParams. > > Also from the solrcloud I did make sure that I am checking the correct > collection and verified solrconfig.xml by choosing the collection and > browsing files within the same collection. > > What ever I am trying is not working other than sending wt=xml as a > parameter while hitting the url. > > Thanks, > > On Fri, Aug 7, 2020 at 10:31 AM Erick Erickson > wrote: > > > 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 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/ 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 > > 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 > 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. > > >>> > > >>> > > >>> > > >>> > > >>> all > > >>> 10 > > >>> > > >>>pkey > > >>>xml > > >>> > > >>> > > >>> 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 > > > > > > -- > Thanks & Regards, > Yaswanth Kumar Konathala. > yaswanth...@gmail.com >
Re: wt=xml not defaulting the results to xml format
Thanks for looking into this Erick, solr/PROXIMITY_DATA_V2/select?q=pkey:223_*=true=country_en=country_en that's what the url I am hitting, and also I made sure that initParams is all commented like this and also I made sure that there is no uncommneted section defined for initParams. Also from the solrcloud I did make sure that I am checking the correct collection and verified solrconfig.xml by choosing the collection and browsing files within the same collection. What ever I am trying is not working other than sending wt=xml as a parameter while hitting the url. Thanks, On Fri, Aug 7, 2020 at 10:31 AM Erick Erickson wrote: > 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 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/ 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 > 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 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 > >> 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. > >>> > >>> > >>> > >>> > >>> all > >>> 10 > >>> > >>>pkey > >>>xml > >>> > >>> > >>> 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 > > -- Thanks & Regards, Yaswanth Kumar Konathala. yaswanth...@gmail.com
Re: wt=xml not defaulting the results to xml format
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 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/ 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 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 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 >> 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. >>> >>> >>> >>> >>> all >>> 10 >>> >>>pkey >>>xml >>> >>> >>> 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
Re: wt=xml not defaulting the results to xml format
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 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 > 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. > > > > > > > > > > all > > 10 > > > > pkey > > xml > > > > > >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
Re: wt=xml not defaulting the results to xml format
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 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. > > > > > all > 10 > > pkey > xml > > >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
wt=xml not defaulting the results to xml format
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. all 10 pkey xml 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