You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Mark <st...@gmail.com> on 2013/11/06 01:14:12 UTC
Configuring number or shards
Can you configure the number of shards per collection or is this a system wide setting affecting all collections/indexes?
Thanks
Re: Configuring number or shards
Posted by Shawn Heisey <so...@elyograg.org>.
On 11/5/2013 5:14 PM, Mark wrote:
> Can you configure the number of shards per collection or is this a system wide setting affecting all collections/indexes?
The collections API has a CREATE action. You can specify numShards as a
parameter. This is better that defining numShards as a java system
property when starting Solr.
http://wiki.apache.org/solr/SolrCloud#Managing_collections_via_the_Collections_API
Currently it is not possible to directly change the number of shards on
a collection once it is created, but it is possible to split a shard
with the SPLITSHARD action, also discussed on that wiki page. This will
result in a collection that has more shards, but the document
distribution will not be identical to a new collection with the same
number of total shards.
Thanks,
Shawn