Spring boot health endpoint for SOLR - Stack Overflow
Spring Boot's SolrHealthIndicator
simply calls ping()
on your SolrServer
. At the moment, it has no way of knowing what collection it should be pinging (or if it should be pinging multiple collections).
Your best option just now would be to configure your CloudSolrServer
instance with a default collection by calling setDefaultCollection(String)
in your solrServer()
bean method.
If you'd like to see some enhancements to SolrHealthIndicator
, for example to allow you to configure the collection(s) to ping in application.properties
, please open an issue.
Read full article from Spring boot health endpoint for SOLR - Stack Overflow
No comments:
Post a Comment