0
votes

I setup my solr instance to run the way I wanted. The service was restarted and all my setup was removed and 4 gettingstarted cores were loaded.

Can someone explain why this happened and what I can do to prevent it from happening again. I would like the cores that I built to be persistent.

Thanks for your help

Edit: Looking over :

https://cwiki.apache.org/confluence/display/solr/Moving+to+the+New+solr.xml+Format

I have the solr.xml setup exactly like the example. I have the core.properties files setup properly. I don't see how it is suppose to know to load the core I created.

Edit2: I found this documentation that states any core.properties files in the home folder will be used.

https://cwiki.apache.org/confluence/display/solr/Solr+Cores+and+solr.xml

1

1 Answers

1
votes

Assuming Solr 5, it sounds like you run /bin/solr restart and got wrong collections. The reason to that would be that the restart command needs the same parameters as the start command, most importantly your solr home path.

Solr home is what you provided with -s parameter when you started your Solr the last time. If you did it instead by starting from an example, this guide on solr home locations should help.