I think you have to use either bootstrap_conf=true or "bootstrap_confdir=/path/to/conf"+"collection.configName=foo" (not both at the same time). If you use the first one, Solr will upload the configuration for all the cores that you have configured (with the name of the core as name of the configuration). When you create a new collection, you'll have to either upload the configuration again to a different directory, or use one of the existing configurations. See http://wiki.apache.org/solr/SolrCloud#Getting_your_Configuration_Files_into_ZooKeeperand http://wiki.apache.org/solr/SolrCloud#Managing_collections_via_the_Collections_API
If all your collections are going to use the same confguration, I would use: first bootstrap_confdir=../solr/conf and collection.configName=myconf and then for every new collection use the command: http://localhost:8983/solr/admin/collections?action=CREATE&name=mycollection&numShards=X&collection.configName=myconf In the other case, you can omit the configName parameter (the collection name will be used) and when you create a collection you do it like: http://localhost:8983/solr/admin/collections?action=CREATE&name=mycollection&numShards=X&bootstrap_conf=true Tomás On Fri, Nov 9, 2012 at 2:16 PM, Carlos Alexandro Becker <caarl...@gmail.com>wrote: > Actually, I want to use it with multiple cores, and my app dinamically add > cores to solr. > So, my solr.xml looks like this: > > <?xml version="1.0" encoding="UTF-8" ?> > <solr persistent="false"> > <cores defaultCoreName="collection1" > adminPath="/admin/cores" > zkClientTimeout="${zkClientTimeout:15000}" > hostPort="8983" > hostContext="solr"> > <core instanceDir="." name="collection1"/> > </cores> > </solr> > > so, my solr.home is jboss.home/solr, which is represented by the dot in > instanceDir setting. > > My solr.home has the following files: > > conf/ > -----stopwords.txt > -----synonyms.txt > data/ > ----inde/ (etc..) > solr.xml > zoo.cfg > > > zoo.cfg is the default of the solrcloud example. > > > THanks in advance. > > > > On Fri, Nov 9, 2012 at 3:09 PM, Tomás Fernández Löbbe < > tomasflo...@gmail.com > > wrote: > > > Are you sure you are pointing to the correct conf directory? sounds like > > you are missing the collection name in the path (maybe it should be > > ../solr/YOURCOLLECTIONNAME/conf?) > > > > > > On Fri, Nov 9, 2012 at 1:58 PM, Carlos Alexandro Becker > > <caarl...@gmail.com>wrote: > > > > > I started my JBoss server with the following command: > > > > > > > > > JAVA_OPTS="-DzkRun -DnumShards=2 -Dbootstrap_conf=true > > > -Dbootstrap_confdir=../solr/conf -Xmx2048m -XX:MaxPermSize=512m" > > > ./standalone.sh > > > > > > OK, server goes up, then I tried to search for something, and got the > > > following error: > > > > > > 10:47:28,594 ERROR [org.apache.solr.core.CoreContainer] (MSC service > > thread > > > 1-6) : org.apache.zookeeper.KeeperException$NoNodeException: > > > KeeperErrorCode = NoNode for /configs/ecm/solrconfig.xml > > > > > > What am I missing? > > > > > > Thanks in advance. > > > > > > > > > > > > -- > > > Atenciosamente, > > > *Carlos Alexandro Becker* > > > http://caarlos0.github.com/about > > > > > > > > > -- > Atenciosamente, > *Carlos Alexandro Becker* > http://caarlos0.github.com/about >