How to know when Solr Optimize is done?

DimaFtoit

New Member
I am using the Solr-php-client to communicate with Solr, via php.This piece of code triggers the solr optimize command:\[code\] $solr->optimize();\[/code\]I wonder if there is any method to know for sure that the optimization is done?This is all because I have an administrations page on my website where I manually once a day must optimize the Solr index, but I have difficulty writing this code.Currently I have a simple form with a submit button which triggers the optimize() command, but I must somehow confirm that the optimize has taken place, which is the problem here.Do you know of any method to confirm an optimization in Solr?Thanks
 
Back
Top