-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client side failover /load balancing #2
Comments
@meenarc yes. just use the type you want eg. @Bean
public SolrServer solrServer() {
return new CloudSolrServer("http://127.0.0.1/zk", new LBHttpSolrServer("http://127.0.0.1:8983/solr_1", "http://127.0.0.1:8983/solr_2"));
} |
So can the CloudSolrServer API be used , even in case of private clustered Solr installations. Like we are planning a DataStax Solr clustered set up |
Actually I never tested it against DataStax. |
I have another question-Can Spring Data Solr be used in a JRE 6 environment |
that pretty much depends on the |
But can I assume that 1.3.0.RELEASE of spring-data-solr would be tied to SolrJ 4.7.2? |
You can expect sd-solr 1.3.x to stick with the solrj 4.7.x line. We plan to upgrade solrj in 1.4.0 but keep spring-data-solr itself 1.6 compatible so that you sill can use it along with solrj 4.7.x in a Java 6 environment. |
I had tried to set up the Solr Template as follows <solr:solr-server id="solrServer" url="http://10.63.20.128:8983/solr"/>
Anytime I use the SolrTemplate I run into Caused by: org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http://10.63.20.128:8983/solr/datapages.spreadsheet_test But when I use the SolrJ API directly as follows I am able to fetch results. HttpSolrServer solrServer=new HttpSolrServer("http://10.63.20.128:8983/solr/datapages.spreadsheet_test") ; In both cases the maven dependency is on the 1.3.0 RELEASE, so the SolrJ used above is the same as the one that used by the underlying Spring jars. |
@meenarc would you mind including your referenced |
solr:solr-server id="solrServer" url="http://10.63.20.128:8983/solr" The previous comment got badly formatted and am not sure if you got to view the contents.I just removed the end and clsoing tags of the solr bean definition I have and pasted it above since that seems to impact formatting. |
hmm... well that's strange. Would you mind opening an issue in JIRA. It would be really helpful if you could include (gist maybe) a small sample reproducing the error. thanks! |
Does Spring-Data-Solr handle client side failover,load balancing across multiple solr nodes(something like http://wiki.apache.org/solr/LBHttpSolrServer?)
The text was updated successfully, but these errors were encountered: