Search code examples
indexingsolrreplication

SolrCloud update node by node after schema update


Is it possible to update one node by one in SOLRCluster so you after update of SOLR schema you will not have to reindex all nodes at once and have downtime of search?

Current SolrCluster configuration

So basically can I:

  1. Put one node into recovering mode
  2. Update this node
    • Update schema.xml
    • Reindex Node
  3. Bring this node as Leader
  4. Put another node into recovery mode
  5. Update this node too and launch it

Or I didn't get something?


Solution

  • Your question is how to update the schema.xml in SolrCloud.

    This answer is about changes in schema.xml which does not imply the nead of a reindexing.

    I also assume that you have create your collection with an named configuration in zookeeper(collection.configName).

    In this case:

    1. Upload your changed configuration folder to zookeeper.
    2. Reload your collection

    Be aware that step 2. need the name of the collection (does not support alias).