Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have created a new core in solr and once I restart my tomcat server the core gets deleted.why does the core in solr gets deleted?

Tags:

solr

I am using apache solr and I have created another core and its works fine.But once i shutdown my server and restart it,the new core gets deleted. But the folder seems to be there in the solr dir.Can any one tell me why does it get deleted from my apache solr? Thanks in advance

like image 461
user2522497 Avatar asked Jul 15 '13 05:07

user2522497


1 Answers

Check for the persistent attribute in the solr.xml <solr persistent="true"> which will persist the changes made through Admin UI and these would be available after restarts as well.

If persistence is enabled (persist=true), the configuration for this new core will be saved in 'solr.xml'.

like image 138
Jayendra Avatar answered Oct 11 '22 23:10

Jayendra