A postCommit hook (configured in solrconfig.xml) is called in a safe
place for every commit.
You could have a program as a hook that normally did nothing unless
you had previously signaled to make a copy of the index.
Then I will give the postCommit trigger a try and hope that while the trigger is executed, the files in data/index are in a consistent state so that I can copy them.

Do you know how this signal can be communicated to the trigger at best? I use Solrj and would call server.commit(), and unfortunately one can not pass a commit message which could be used as signal for the trigger.

Reply via email to