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/Configuring-seperate-db-data-config-xml-per-shard-tp4068383p4068819.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to