This sounds like you really want two different collections. Using two different configs/schemas is not compatible with a single collection. Perhaps you could back up and tell us why you think you need to do this? Sounds like an XY problem.
Best Erick On Jan 7, 2014 2:56 PM, "jhittner" <j...@hittner.com> wrote: > Hi, I'm working on setting up my first SolrCloud instance and have a three > questions I was hoping for some help with. I am running Solr 4.5.1. > > 1- I have 2 different schema's and 2 solrconfigs that I currently place in > a > single conf folder that get uploaded to zookeeper automatically by tomcat > (bootstrap_confdir). I have been editing the core.properties files after > creating my collections to add the "schema=" and "config=" params to > instruct each core on what config file and schema to use. How can I > configure these two options when calling the API so I don't need to login > to > the boxes and edit anything manually. The command I currently use looks > something like: > > http://solrvip:8080/solr/admin/collections?action=CREATE&name=zipcollection-a&numShards=2&replicationFactor=2&maxShardsPerNode=4 > > 2- I store all my configs in a specific directory that I set with the > tomcat > "bootstrap_confdir" option. After creating my collection using the API > call above, the collection runs perfect until the next restart. After > restarting, solr will not start back up until I create a "conf" directory > in > each of the shards directories created by the API. The directory can be > empty, but needs to exist in order for Solr to run. Is this a bug or am I > doing something wrong? > > 3- As I stated in question 1, I put all my schema's and solrconfigs in a > single directory uploaded with the "bootstrap_confdir" directive. Is > there any way to organize this in sub-directories. I've tried several > ways, but can't seem to get it to work. for example: > bootstrap_confdir=/solr/conf > /solr/conf/collection-a/schema.xml > /solr/conf/collection-b/schema.xml > > Thanks in advance for the advice, and thanks to the community for the hard > work. > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/questions-on-the-collections-API-usage-solrcloud-4-5-1-tp4110059.html > Sent from the Solr - User mailing list archive at Nabble.com. >