2

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.

Mateusz Piotrowski
  • 8,029
  • 10
  • 53
  • 79
stecava
  • 71
  • 10

2 Answers2

6

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.

AR1
  • 4,507
  • 4
  • 26
  • 42
1

I also use the /dataimport?command=status way to check if the job is done or not, and while it works, sometimes I get the impression it is a bit flaky.

There are listeners you can use: see here I would really like to use those, but of course you need to write java code and handle your jar in solr etc. So it is a bit of a PITA

Persimmonium
  • 15,593
  • 11
  • 47
  • 78