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 <g...@mimirtech.com> wrote:
> 
> On Fri, 23 Jul 2021 at 11:05, Akreeti Agarwal <akree...@hcl.com.invalid>
> 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://solr.apache.org/guide/7_5/response-writers.html
> 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://solr.apache.org/guide/7_5/client-apis.html
> 
> Regards,
> Gora

Reply via email to