Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Solr Core Admins API response in JSON

Tags:

solr

Solr core admin API returns response in XML like the following:

<?xml version="1.0" encoding="UTF-8"?>
<response>
   <lst name="responseHeader"><int name="status">0</int><int name="QTime">2155</int></lst><str name="core">test</str>
</response>

I am wondering if there is a way to get this back in JSON.

like image 808
kee Avatar asked Dec 07 '25 22:12

kee


1 Answers

You need to append the link with &wt=json.

This will give you the output in JSON format.

like image 54
JHS Avatar answered Dec 11 '25 13:12

JHS