use of org.apache.solr.handler.admin.CoreAdminHandler in project SearchServices by Alfresco.
the class AbstractAlfrescoSolrTests method reindexTransactionId.
/**
* Maintenance method
* @param txnId
* @throws Exception
*/
public void reindexTransactionId(long txnId) throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "REINDEX", CoreAdminParams.NAME, h.getCore().getName(), "txid", Long.toString(txnId)), resp);
}
use of org.apache.solr.handler.admin.CoreAdminHandler in project SearchServices by Alfresco.
the class AbstractAlfrescoSolrTests method reindexAclId.
/**
* Maintenance method
* @param aclId
* @throws Exception
*/
public void reindexAclId(long aclId) throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "REINDEX", 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 purgeTransactionId.
// Maintenance method
public void purgeTransactionId(long txnId) throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "PURGE", CoreAdminParams.NAME, h.getCore().getName(), "txid", Long.toString(txnId)), resp);
}
use of org.apache.solr.handler.admin.CoreAdminHandler in project SearchServices by Alfresco.
the class AbstractAlfrescoSolrTests method reindexNodeId.
public void reindexNodeId(long nodeId) throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "REINDEX", 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 indexAclId.
/**
* @param aclId
* @throws Exception
*/
public void indexAclId(long aclId) throws Exception {
CoreAdminHandler admin = h.getCoreContainer().getMultiCoreHandler();
SolrQueryResponse resp = new SolrQueryResponse();
admin.handleRequestBody(req(CoreAdminParams.ACTION, "INDEX", CoreAdminParams.NAME, h.getCore().getName(), "aclid", Long.toString(aclId)), resp);
}
Aggregations