Thank you very much Alvaro and Shawn. The DataImport Status command was what I was looking for. I have tried it a bit, and I feel the output is good enough for me. Thanks again
Alvaro Cabrerizo wrote > Maybe you are asking for the status command. Currently this is the url I > invoke for checking whether the import process is running (or has failed) > > From the cwiki: > > The URL is http:// > <host> > : > <port> > /solr/ > <collection_name> > /dataimport?command=status. > It returns statistics on the number of documents created, deleted, queries > run, rows fetched, status, and so on. > > Hope it helps. Shawn Heisey-2 wrote > The actual dataimport API (not the admin UI link that you included > above, which *uses* the dataimport API) is the only way I know of for > sure to detect the import status. The default command is "status". > > http://server:port/solr/corename/dataimport > > Here's a wiki page with info on this API: > > http://wiki.apache.org/solr/DataImportHandler#Commands > > Unfortunately, interpreting the status is not straightforward for a > program. It's pretty easy for a human to interpret it on sight, but a > program must examine several aspects of the status response to determine > the status, success, or failure of an import. There are bug reports > about this, but it's a thorny problem that has not yet been solved. > > https://issues.apache.org/jira/browse/SOLR-3319 > > Thanks, > Shawn -- View this message in context: http://lucene.472066.n3.nabble.com/Detect-ongoing-Solr-Import-and-its-Completion-tp4184273p4184286.html Sent from the Solr - User mailing list archive at Nabble.com.