Index verification extension points

The search index verification framework provides extension points for you for more fine-grained monitoring of index health.


Enable extension points

During verification, the replication handler triggers the check operation for cores in the managed configuration. On the master server, the entry point to call the operations is the core operation request handler, or our own defined custom request handler. Check operations logic is automatically triggered and run every time index replication completely downloads new index files and switches over to the new index. As a result, the upon success or upon failure operations are automatically triggered on the repeater and subordinate servers. In the managed configuration, we can use the search index verification framework by enabling healthCheckOps and setting the checkOps flag in the solrconfig.xml file.

healthCheckOps.checkOps provides access to classes we use to customize the verification process. In the example above, the class being called is SolrDoQueryCheckOperation. The classes enable you to back up, replicate and query your indexes.


Backing up the index

To protect customers' index, it is better to back up the replicated index once a replication is successful, but otherwise restore the latest backup copy of the index. We can use two classes for this purpose.


Auxiliary operations