Excluding hosts from distributed queries

You can exclude hosts from distributed queries.

To exclude hosts from distributed queries, perform these steps on each node that you want to send queries to:

Procedure

  1. Navigate to the solr/conf directory.

    solr conf

    The default Solr conf location depends on the type of installation:
    • Package installations: /usr/share/dse/resources/solr/conf
    • Tarball installations: installation_location/resources/solr/conf
  2. Open the exclude.hosts file, and add the list of nodes to be excluded. Separate each name with 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.