Excluding hosts from Solr-distributed queries

You can exclude hosts from Solr-distributed queries.

You can exclude hosts from Solr-distributed queries by performing these steps on each node that you want to send queries to.

  1. Navigate to the Solr/conf directory:
    • Packaged installs: /usr/share/dse/solr/conf
    • Tarball installs: dse install/resources/solr/conf
  2. Open the exclude.hosts file, and add the list of nodes to be excluded. Each name must be separated by a newline character.
  3. Update the list of routing endpoints on each node, by calling the JMX operation refreshEndpoints() on the com.datastax.bdp:type=ShardRouter mbean.