use of org.apache.solr.handler.admin.CoreAdminHandler in project SearchServices by Alfresco.
the class AbstractAlfrescoSolrTests method purgeAclId.
public void purgeAclId(long aclId) throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "PURGE", CoreAdminParams.NAME, h.getCore().getName(), "aclid", Long.toString(aclId)), resp);
}
use of org.apache.solr.handler.admin.CoreAdminHandler in project SearchServices by Alfresco.
the class AbstractAlfrescoSolrTests method retry.
// Maintenance method
public void retry() throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "RETRY", CoreAdminParams.NAME, h.getCore().getName()), resp);
}
use of org.apache.solr.handler.admin.CoreAdminHandler in project SearchServices by Alfresco.
the class AbstractAlfrescoSolrTests method reindexAclChangeSetId.
public void reindexAclChangeSetId(long aclChangeSetId) throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "REINDEX", CoreAdminParams.NAME, h.getCore().getName(), "acltxid", Long.toString(aclChangeSetId)), resp);
}
use of org.apache.solr.handler.admin.CoreAdminHandler in project SearchServices by Alfresco.
the class AbstractAlfrescoSolrTests method purgeNodeId.
// Maintenance method
public void purgeNodeId(long nodeId) throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "PURGE", CoreAdminParams.NAME, h.getCore().getName(), "nodeid", Long.toString(nodeId)), resp);
}
use of org.apache.solr.handler.admin.CoreAdminHandler in project SearchServices by Alfresco.
the class AbstractAlfrescoSolrTests method purgeAclChangeSetId.
public void purgeAclChangeSetId(long aclChangeSetId) throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "PURGE", CoreAdminParams.NAME, h.getCore().getName(), "acltxid", Long.toString(aclChangeSetId)), resp);
}
Aggregations