Search code examples
indexingsolrapache-zookeepersolrcloud

How to know when dataimporthandler for solr finished indexing?


Is it possibile to know where solr finished to index my data?

I work with solrcloud 4.9.0 and zookeeper for conf file manager. I have the data.import file, but in it there is only where the indexing is STARTED not when it ended.


Solution

  • You can get the dataimporthandler status using:

    <MY_SERVER>/solr/dataimport?command=status
    

    Reading the status you can understand if the import is still running. A similar procedure (with a different url) is advised in "Solr in Action" book in order to check if a backup is still running. Another option would involve the use of listeners as advised here.