You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sathish_ix <sk...@inautix.co.in> on 2013/06/07 09:37:41 UTC
Re: Is there a way to load multiple schema when using zookeeper?
Hi,
we were able to accomplish this by single collection.
Zookeeper :
create separate node for each shards, and upload the dbconfig file under
shards.
eg : /config/config1/shard1
/config/config1/shard2
/config/config1/shard3
In the solrconfig.xml,
<requestHandler name="/dataimport"
class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">${dbconfig}</str>
</lst>
</requestHandler>
In solr.xml,
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true" zkHost="localhost:2181" >
<cores defaultCoreName="core1" adminPath="/admin/cores"
zkClientTimeout="${zkClientTimeout:15000}" host="${host:}" hostPort="9985"
hostContext="${hostContext:}">
<core loadOnStartup="true" instanceDir="core1" transient="false"
name="core1" >
<property name="dbconfig" value="shard1/db-data-config.xml" />
</core>
</cores>
</solr>
This way you can configure dbconfig file per shard.
Thanks,
Sathish
--
View this message in context: http://lucene.472066.n3.nabble.com/Is-there-a-way-to-load-multiple-schema-when-using-zookeeper-tp4058358p4068820.html
Sent from the Solr - User mailing list archive at Nabble.com.