Hi, I know a few question on this issue have already been posted, but I dint find full answers in any of those posts.
I'm using solr-4.0.0 I need my solr cluster to have multiple collections, each collection with different configuration (at least different schema.xml file). I follow the solrCloud tutorial page and execute this command: /java -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf -DzkRun -DnumShards=5 -jar start.jar/ when I start a solr servers I have collection1 in clustserState.json with each node assigned to some shard. questions so far: 1.Is this first command 100% necessary? 2. Do I have to defined the number of shards before starting solr instances? 3. What if I want to add a shard after I started all solr instances and haven't indexed yet? 4. what if I want to add a shard after indexing? 5. what is the role that clustserState.json plays? is it just a json file to show in the GUI? Or is it the only file that persists the current state of the cluster? 6. Can I edit it manually? should I? I add another schema-B.xml file to the zookeeper and open another collection by using coreAdmin Rest API. I want this collection to have 10 shards and not 5 as I defined for the previous collection. So I run /http://server:port/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml&dataDir=data&shard=shard// 10 times with different / each run. questions: 1. is this an appropriate way to use the core admin API? should I specify the shard Id? I do it because it gives me a way to control the number of shards (each new shard id creates a new shard). but should I use it this way? 2. Can I have different number of shards in different collections on the same cluster? 3. If yes - then what is the purpose of the first bootstrap command? another question: I saw that in 4.1 version, each shard has another parameter - range. what is this parameter used for? would I have to re-index when upgrading from 4.0 to 4.1? this will help a lot in understanding the whole collection-sharding architecture in solr cloud. Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-manage-solr-cloud-collections-sharding-tp4033009.html Sent from the Solr - User mailing list archive at Nabble.com.