Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to really often the synonyms_*.txt in the solr server. I have 2 cores. One for the production System and one the staging. I copy with incron and scp the new generated synonymes to the solr server and restart the tomcat to reload it.

But it can be broken if any config is crap or any product is actually in the update process. Give it any solution to restart/reload one core only via cli?

Thanks for your help.

Dennis

share|improve this question
    
Can you clarify what you mean by "cores"? Do you mean it's two independent copies of the solr webapp? –  Shane Madden Feb 1 '12 at 17:05

1 Answer 1

up vote 0 down vote accepted

you can reload a core via the API

Have a look: http://wiki.apache.org/solr/CoreAdmin#RELOAD

use wget to call a reload on your core

share|improve this answer
    
I have written an small shell script for this: github.com/denniswisnia/solr-tools –  Dennis Wisnia May 30 '12 at 8:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.