Re: Solrcloud and Node.js

2012-12-17 Thread Per Steffensen
Luis Cappa Banda skrev: Thanks a lot, Per. Now I understand the whole scenario. One last question: I've been searching trying to find some kind of request handler that retrieves cluster status information, but no luck. I know that there exists a JSON called clusterstate.json, but I don't know the

Re: Solrcloud and Node.js

2012-12-15 Thread Mark Miller
There is a /zookeeper servlet that the admin UI uses for the Cloud tab. I don't know much about it, I think Ryan wrote it. The other option is to talk to zk directly. I also plan on adding an admin handler for ZooKeeper at some point. - Mark On Dec 15, 2012, at 12:33 PM, Luis Cappa Banda wrot

Re: Solrcloud and Node.js

2012-12-15 Thread Luis Cappa Banda
Thanks a lot, Per. Now I understand the whole scenario. One last question: I've been searching trying to find some kind of request handler that retrieves cluster status information, but no luck. I know that there exists a JSON called clusterstate.json, but I don't know the way to get it in raw JSON

Re: Solrcloud and Node.js

2012-12-15 Thread Per Steffensen
Luis Cappa Banda skrev: Do you know if SolrCloud replica shards have 100% the same data as the leader ones every time? Probably wen synchronizing with leaders there exists a delay, so executing queries to replicas won't be a good idea. As long as the replica is in state "active" it will be 100

Re: Solrcloud and Node.js

2012-12-15 Thread Luis Cappa Banda
Hello, Per. Thanks for your answer! I jave worked a lot with SolrJ and in the last two months also with the new SolrJ 4.0 and specifically with Zookeeper and CloudSolrServer implementation. I've developed a search engine wrapper that dispatches queries to SolrCloud using a CloudSolrServer pool. Th

Re: Solrcloud and Node.js

2012-12-15 Thread Per Steffensen
As Mark mentioned Solr(Cloud) can be accessed through HTTP and return e.g. JSON which should be easy to handle in a javascript. But the client-part (SolrJ) of Solr is not just a dumb client interface - it provides a lot of client-side functionality, e.g. some intelligent decision making based o

Re: Solrcloud and Node.js

2012-12-14 Thread Luis Cappa Banda
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

Re: Solrcloud and Node.js

2012-12-14 Thread Mark Miller
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 wil