在 solr 中创建分片时...."shards can be added only to 'implicit' collections"

when creating shards in solr...."shards can be added only to 'implicit' collections"

我们不需要 SPLITSHARD。 我在创建集合时给了 numShards=1。对于同一个集合,我们需要 shard2。我们在为同一个集合创建分片 2 时出现以下错误。

错误:分片只能添加到 'implicit' 集合

集合使用了两种路由器实现方法。 default 是 "compositeId" 路由器。

因此,如果使用 compositeId 路由器方法创建集合,我们无法创建新的分片 。 唯一可能的方法是拆分现有的碎片。

因为错误指示分片只能添加到 'implicit' 个集合

如果您使用 implicit 路由器创建集合,则可以添加分片。 您可以另外定义一个 router.field 参数以使用每个文档中的字段来标识文档所属的分片。但是,如果文档中缺少指定的字段,文档将被拒绝

more on document routing