godong9 / solr-node

Simple Solr Node Client Project.
MIT License
25 stars 25 forks source link

How to use solr cloud mode with zookeeper #93

Open alishah730 opened 4 years ago

alishah730 commented 4 years ago

how to initialize the client with zk host string when solr is in cloud mode? like

zk1:2181,zk2:2181,zk3:2181/solr

based on the current code we have

var client = new SolrNode({
    host: '127.0.0.1',
    port: '8983',
    core: 'test',
    protocol: 'http'
});