You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Neeraj giri <gi...@gmail.com> on 2023/02/16 01:42:15 UTC
Deleting shard in solr
Hi all,
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
Regards,
Neeraj giri
Re: Deleting shard in solr
Posted by Shawn Heisey <el...@elyograg.org>.
On 2/15/23 20:10, Shawn Heisey wrote:
> About the only thing you can do along these
> lines is SPLITSHARD.
After a split completes, you can delete the original shard, because at
that point it will be inactive, and the newly created shards will cover
its hash range.
Thanks,
Shawn
Re: Deleting shard in solr
Posted by Shawn Heisey <ap...@elyograg.org>.
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