You may also have to link the config name with collection name in the zookeeper. Here's the command to do it:
cloud-scripts/zkcli.sh -cmd linkconfig -zkhost localhost:9983 -collection COLLECTION_1_NAME -confname CONF_1_NAME Rafal, did having the config name same as collection name allow you to create collections without having to link the corresponding config names? I did not try this myself. Thanks -Shankar On Thu, Feb 28, 2013 at 4:41 AM, Rafał Kuć <r....@solr.pl> wrote: > Hello! > > You can try doing the following: > > 1. Run Solr with no collection and no cores, just an empty solr.xml > > 2. If you don't have a ZooKeeper run Solr with -DzkRun > > 3. Upload you configurations to ZooKeeper, by running > > cloud-scripts/zkcli.sh -cmdupconfig -zkhost localhost:9983 -confdir > CONFIGURATION_1_DIR -confname COLLECTION_1_NAME > > and > > cloud-scripts/zkcli.sh -cmdupconfig -zkhost localhost:9983 -confdir > CONFIGURATION_2_DIR -confname COLLECTION_2_NAME > > 4. Create those two collections: > > curl ' > http://localhost:8983/solr/admin/collections?action=CREATE&name=COLLECTION_1_NAME&numShards=2&replicationFactor=0 > ' > > and > > curl ' > http://localhost:8983/solr/admin/collections?action=CREATE&name=COLLECTION_2_NAME&numShards=2&replicationFactor=0 > ' > > Of course the CONFIGURATION_1_DIR and CONFIGURATION_2_DIR is the > directory where your configurations are stored and the > COLLECTION_1_NAME and the COLLECTION_2_NAME are your collection names. > > Also adjust the numShards and replicationFactor to your needs. > > -- > Regards, > Rafał Kuć > Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch > > > solr 4.1 - trying to create 2 collection with 2 different sets of > > configurations. > > Anyone accomplished this? > > > if I run bootstraop twice on different conf dirs, I get both of them in > > zookeper, but using collections API to create a collection if > > collection.configName=seconfConf doesnt work. > > > any idea? > > > thanks. > > > > > -- > > View this message in context: > > > http://lucene.472066.n3.nabble.com/solr-4-1-trying-to-create-2-collection-with-2-different-sets-of-configurations-tp4043609.html > > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Regards, *Shankar Sundararaju *Sr. Software Architect ebrary, a ProQuest company 410 Cambridge Avenue, Palo Alto, CA 94306 USA shan...@ebrary.com | www.ebrary.com | 650-475-8776 (w) | 408-426-3057 (c)