public class RemoteSolrAdministrator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Map<String,eu.dnetlib.functionality.index.model.Any.ValueType>> |
cachedSchema |
| Constructor and Description |
|---|
RemoteSolrAdministrator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createSolrIndex(String host,
String port,
String collectionName,
String numShard,
String replicationFactor,
String maxShardsPerNode,
String collectionConfigName) |
Map<String,eu.dnetlib.functionality.index.model.Any.ValueType> |
getFieldNamesAndTypes(String coreName,
org.apache.solr.client.solrj.SolrServer server) |
org.apache.http.client.HttpClient |
getHttpClient() |
boolean |
indexCollectionExists(String indexCollectionId,
org.apache.solr.client.solrj.impl.CloudSolrServer server) |
void |
reloadCollection(String host,
String port,
String collectionName) |
void |
setHttpClient(org.apache.http.client.HttpClient httpClient) |
public boolean createSolrIndex(String host, String port, String collectionName, String numShard, String replicationFactor, String maxShardsPerNode, String collectionConfigName) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
eu.dnetlib.data.provision.index.rmi.IndexServiceExceptionpublic boolean indexCollectionExists(String indexCollectionId, org.apache.solr.client.solrj.impl.CloudSolrServer server)
public Map<String,eu.dnetlib.functionality.index.model.Any.ValueType> getFieldNamesAndTypes(String coreName, org.apache.solr.client.solrj.SolrServer server) throws eu.dnetlib.data.provision.index.rmi.IndexServiceException
eu.dnetlib.data.provision.index.rmi.IndexServiceExceptionpublic org.apache.http.client.HttpClient getHttpClient()
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
httpClient - the httpClient to setCopyright © 2018. All rights reserved.