public class SolrServerUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
appendCoreToBaseUrl(String baseUrl,
String core)
Append core to given baseUrl
|
static <T extends org.apache.solr.client.solrj.SolrServer> |
clone(T solrServer) |
static <T extends org.apache.solr.client.solrj.SolrServer> |
clone(T solrServer,
String core)
Create a clone of given
SolrServer and modify baseUrl of clone to point to the given core. |
public static <T extends org.apache.solr.client.solrj.SolrServer> T clone(T solrServer)
public static <T extends org.apache.solr.client.solrj.SolrServer> T clone(T solrServer, String core)
SolrServer
and modify baseUrl of clone to point to the given core.solrServer
- Non null reference SolrServer
to copy properties from.core
- Name of solr core to point to.BeanInstantiationException
- if creating instance failedCopyright © 2011-2013-2013 Pivotal. All Rights Reserved.