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. |
static String |
resolveSolrCoreName(Class<?> type)
Resolve solr core/collection name for given type.
|
public static String resolveSolrCoreName(Class<?> type)
type - SolrDocument not present or SolrDocument.solrCoreName() is blank.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-2015–2015 Pivotal Software, Inc.. All rights reserved.