Class ForceLeaderAPI


  • public class ForceLeaderAPI
    extends Object
    V2 API for triggering a leader election on a particular collection and shard.

    This API (POST /v2/collections/collectionName/shards/shardName {'force-leader': {}}) is analogous to the v1 /admin/collections?action=FORCELEADER command.

    See Also:
    ForceLeaderPayload
    • Constructor Detail

    • Method Detail

      • forceLeader

        public void forceLeader​(PayloadObj<org.apache.solr.client.solrj.request.beans.ForceLeaderPayload> obj)
                         throws Exception
        Throws:
        Exception