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