I think that Node.js is extremely powerful for developing REST API very light and simple modules, so combining it with Solr sounds good, that´s why I´m obsessed to combine them.
So then with an example of numShards=2 SolrCloud is posible to execute queries like: http://host1:8000/solr/collection1/select?shards=host2:8000/solr/collection1,host3:8000/solr/collection1,host4:8000/solr/collection1&indent=true&q=title:(Indiana Jones) Where al those are leaders. What I was thinking is to use just Node.js to dispatch queries without (at least at first - It´s just a personal test) any balancer right now. Maybe it should be interesting to return with each query response the cluster state to make "smarter" some alternative Solr clients as the one I want to try. That will make posible to create some kind of CloudSolrServer Node.js object and update it´s status with each cluster state response (embeded in each query response). That CloudSolrServer object will just to store the shards status and to map queries just to those that are "alive" and execute to the leaders. I don´t know how is SolrCloud implemented but, does it also executes queries to replicas? It sounds reasonable for balancing, but I´m not sure if replicas are 100% data-synchronized (and always) with their leaders, so maybe it won´t be a good idea. 2012/12/14 Mark Miller <markrmil...@gmail.com> > Yes, you can access SolrCloud in any std way you can access Solr. > > The main difference when using a client that does not know how to talk to > ZooKeeper about the cluster state: > > You have to specify a particular machines address or setup a load balancer > when using a 'dumb client. > > A dumb client will not know about additions or removals from the cluster - > if you are using a load balancer you will have to update it with the new > state. > > A dumb client won't be able to optimize some updates to leaders. > > It's still a perfectly reasonable option to not use a 'smart' client > though. > > - Mark > > On Dec 14, 2012, at 3:09 PM, Luis Cappa Banda <luisca...@gmail.com> wrote: > > > Hello! > > > > I've always used Java as the backend language to program search modules, > > and I know that CloudSolrServer implementation is the way to interact > with > > SolrCloud. However, I'm starting to love Node.js and I was wondering if > > there exists the posibility to launch queries to a SolrCloud with the > "old > > fashioned" sharding syntax. > > > > Thank you in advance! > > > > Best regards. > > -- - Luis Cappa