Solr Explorer – JSON request failed or timed out
Posted on July 31st, 2010 in Technology | No Comments »
Solr Explorer is a great free tool to use and help you quickly and easily see what is in your Solr index. I struggled with this for a few hours before working out the problem – google didn’t turn up this solution either!
If you’re seeing “Could not load solr core (‘yourcore’): The JSON request failed or timed out” when trying to load a solr core in Solr Explorer, I found that the documentation for Solr Explorer wasn’t quite correct. The config I was using was as follows:
<solr-core name="blackbox">
<server baseUrl="http://localhost:8983/solr">
<select-uri>/select</select-uri>
<luke-uri>/luke</luke-uri>
</server>
<search>
<default-query>*:*</default-query>
</search>
The select-uri and luke-uri are what it defaults to if you don’t include them. I found I had to add the path to the core in order to correct the error:
<solr-core name="meon">
<server baseUrl="http://localhost:8983/solr">
<select-uri>/<strong>blackbox/</strong>select</select-uri>
<luke-uri>/<strong>blackbox/admin/</strong>luke</luke-uri>
</server>
<search>
<default-query>*:*</default-query>
</search>
You should then be able to select the solr core and get in without seeing the “Could not load solr core (‘yourcore’): The JSON request failed or timed out” error any longer.