List of usage examples for org.apache.solr.client.solrj.impl HttpSolrClient setBaseURL
public void setBaseURL(String baseURL)
From source file:com.frank.search.solr.server.support.HttpSolrClientFactory.java
License:Apache License
protected void appendCoreToBaseUrl(String core, SolrClient solrClient) { if (StringUtils.isNotEmpty(core) && isHttpSolrClient(solrClient)) { HttpSolrClient httpSolrClient = (HttpSolrClient) solrClient; String url = SolrClientUtils.appendCoreToBaseUrl(httpSolrClient.getBaseURL(), core); httpSolrClient.setBaseURL(url); }/*from w ww. j a v a 2s .c om*/ }