On 2/15/23 18:42, Neeraj giri wrote:
I am trying to delete a shard in solr, but its saying shard is active and cannot be deleted. Is there a way to make a shard inactive ad then delete it? or any other way to delete a shard
Which router is the collection using? If it's the default compositeid, you can't delete a shard. If you did, the docs that matched the hash range for that shard would have nowhere to go. You also can't add a shard with that router. About the only thing you can do along these lines is SPLITSHARD.
With the implicit router, you are 100 percent in control of which shards get which docs, so adding and deleting shards is permitted.
Thanks, Shawn