Classification: Confidential Hi,
By table you mean? Where should I store the entire result? Also, is there any way to track or print responses in log or generate request ID's Regards, Akreeti Agarwal -----Original Message----- From: Dave <[email protected]> Sent: Friday, July 23, 2021 8:09 PM To: [email protected] Cc: [email protected] Subject: Re: Print Solr Responses || SOLR 7.5 [CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.] Assuming you have an interface to solr in between your ap and solr server, why not just store the entire result set in json format into a table? It’s fast reliable and does exactly what you want yes? > On Jul 23, 2021, at 10:34 AM, Gora Mohanty <[email protected]> wrote: > > On Fri, 23 Jul 2021 at 11:05, Akreeti Agarwal > <[email protected]> > wrote: > >> Classification: Confidential >> Hi All, >> >> I am using SOLR 7.5 Master/Slave architecture in my project. Just >> wanted to know, is there any way in which we can print responses >> generated by SOLR query in some log file i.e. as many solr query are >> getting hit, we can store the response in some file. >> If it can be done, then can be done on timely basis like we set it >> for say >> 5 minutes. >> > > Depending on your configuration, these requests should be logged to > the Solr logs. The location of the logs depends on the logging > configuration, and how you are running Solr. For the built-in Jetty, > there should be a logs/ sub-directory > > >> >> Please help as I am not able to resolve one issue coming on prod >> environment. >> Issue: >> SOLR is returning response with "*" which is causing parsing issue at >> API side >> >> {* "response":{"numFound":1,"start":0,"docs":[..... >> > > Your question is not clear: "Parsing issue at API side" for what API? > If it is an issue with your code trying to parse the Solr response, > surely that's up to you to fix. > > Are you sure that you are asking Solr for a desirable return format. > e.g., JSON. Please see > https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsolr > .apache.org%2Fguide%2F7_5%2Fresponse-writers.html&data=04%7C01%7CA > kreetiA%40hcl.com%7C40499e0454cf4fa374c808d94de7c8eb%7C189de737c93a4f5 > a8b686f4ca9941912%7C0%7C0%7C637626480163920349%7CUnknown%7CTWFpbGZsb3d > 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C > 1000&sdata=mPdFKZysr4g6%2B8fZWU%2FeiCmSVnC8smNV%2FQ9w8CjBs6s%3D&am > p;reserved=0 for the various return formats.You can specify the return > format with the "wt" parameter in the query to Solr. It is also > probably advisable to use a client API: > https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsolr > .apache.org%2Fguide%2F7_5%2Fclient-apis.html&data=04%7C01%7CAkreet > iA%40hcl.com%7C40499e0454cf4fa374c808d94de7c8eb%7C189de737c93a4f5a8b68 > 6f4ca9941912%7C0%7C0%7C637626480163920349%7CUnknown%7CTWFpbGZsb3d8eyJW > IjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000& > amp;sdata=rwFkwqxyACgIQdTVviR9rQ6LU1DzY6DKPs6%2FVN1YoCA%3D&reserve > d=0 > > Regards, > Gora ::DISCLAIMER:: ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ________________________________
