On 10/1/2020 3:55 AM, Sunil Dash wrote:
This is my javascript code ,from where I am calling solr ,which has a
loaded nutch core (index).
My java script client ( runs on TOMCAT server) and Solr
server are on the same machine (10.21.6.100) . May be due to cross
domain references issues OR something is missing I don't know.
I expected Response from Solr server (search result) as raw JASON
object. Kindly help me fix it.Thanks in advance .

As far as I can tell, your message doesn't tell us what the problem is. So I'm having a hard time coming up with a useful response.

If the problem is that the response isn't JSON, then either you need to tell Solr that you want JSON, or run a new enough version that the default response format *IS* JSON. I do not recall which version we changed the default from XML to JSON.

One thing you should be aware of ... if the javascript is running in the end user's browser, then the end user has direct access to your Solr install. That is a bad idea.

Thanks,
Shawn

Reply via email to