If you're using SolrJ, then the response is already in Java format, so just use a JSON package to map the Java map to JSON text.

Or, just call Solr directly using HTTP and specify wt=json to get raw JSON from Solr.

BUT... this sounds more like an XY problem. I mean, if the response is already in Java, why do you need JSON? The real purpose of a JSON response is usually simply to more easily map it to Java (or JavaScript.)

-- Jack Krupansky

-----Original Message----- From: Dharmendra Jaiswal
Sent: Tuesday, November 12, 2013 4:54 AM
To: solr-user@lucene.apache.org
Subject: How we can get JSON response using CloudSolrServer

I am using Solr4.4.0 version with SolrCloud (i.e. a ZooKeeper aware setup)
I want to get search response in JSON using CloudSolrServer (of SolrJ API).
Any pointer will be helpful.



--
View this message in context: http://lucene.472066.n3.nabble.com/How-we-can-get-JSON-response-using-CloudSolrServer-tp4100426.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to