Andy, I use an approach similar to yours. There may be something better, however. You might be able to write an "onImportEnd" listener to tell you when it ends.
See http://wiki.apache.org/solr/DataImportHandler#EventListeners for a little documentation See also https://issues.apache.org/jira/browse/SOLR-938 and https://issues.apache.org/jira/browse/SOLR-1081 for the background on this feature. If you do end up using this let us know how it works and if there is anything you could see to improve it. James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -----Original Message----- From: Andy Lester [mailto:a...@petdance.com] Sent: Monday, November 19, 2012 10:29 AM To: solr-user@lucene.apache.org Subject: How do I best detect when my DIH load is done? A little while back, I needed a way to tell if my DIH load was done, so I made up a little Ruby program to query /dih?command=status . The program is here: http://petdance.com/2012/07/a-little-ruby-program-to-monitor-solr-dih-imports/ Is this the best way to do it? Is there some other tool or interface that I should be using instead? Thanks, xoa -- Andy Lester => a...@petdance.com => www.petdance.com => AIM:petdance