Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I unloaded the default Solr Collection by mistake from the Solr Admin UI

How do I reload it into Solr again? If I try to launch the Solr Admin UI, I get the following message:

There are no SolrCores running. Using the Solr Admin UI currently requires at least one SolrCore.

like image 386
Saqib Ali Avatar asked Nov 08 '12 18:11

Saqib Ali


1 Answers

You will need to modify the <cores> entry in the solr.xml file that is in the root of where your Solr instance is running and add at least one <core> entry. Below is the example that comes with the Solr distribution.

      <cores adminPath="/admin/cores" defaultCoreName="collection1">
         <core name="collection1" instanceDir="." />
       </cores>

You will need to modify this according to your local settings. You can reference more information on Cores and their settings in the CoreAdmin Solr Wiki page.

like image 185
Paige Cook Avatar answered Nov 15 '22 12:11

Paige Cook