Search code examples
solrsolrcloud

How to understand if I'm in SolrCloud mode or not?


How can I understand, from a custom component (e.g. SearchComponent, ResponseWriter) if I am running in SolrCloud mode or not?


Solution

  • I think this is the answer (from DistributedUpdateProcessor):

    coreDescriptor.getCoreContainer().isZooKeeperAware();