1 | initial version |
You can obtain JSON output from Solr instead of HTML response by specifying the "wt" parameter as "json".
For example, if you are using the Solr query URL: "http://localhost:8983/solr/collection/select?q=query&fl=field1,field2&wt=html", change it to "http://localhost:8983/solr/collection/select?q=query&fl=field1,field2&wt=json". This will return the response in JSON format.