car.setCoreName(primaryCoreName); car.setOtherCoreName(reindexCoreName); car.setAction(CoreAdminAction.SWAP);
public static CoreAdminResponse reloadCore( String name, SolrServer server ) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName( name ); req.setAction( CoreAdminAction.RELOAD ); return req.process( server ); }
public static CoreAdminResponse getStatus( String name, SolrClient client ) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName( name ); req.setAction( CoreAdminAction.STATUS ); return req.process( client ); }
public static CoreAdminResponse reloadCore(String name, SolrClient client) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName(name); req.setAction(CoreAdminAction.RELOAD); return req.process(client); }
public static CoreAdminResponse getStatus( String name, SolrClient client ) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName( name ); req.setAction( CoreAdminAction.STATUS ); return req.process( client ); }
public static CoreAdminResponse unloadCore( String name, SolrServer server ) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName( name ); req.setAction( CoreAdminAction.UNLOAD ); return req.process( server ); }
public static CoreAdminResponse getStatus( String name, SolrServer server ) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName( name ); req.setAction( CoreAdminAction.STATUS ); return req.process( server ); }
public static CoreAdminResponse reloadCore(String name, SolrClient client) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName(name); req.setAction(CoreAdminAction.RELOAD); return req.process(client); }
public static CoreAdminResponse renameCore(String coreName, String newName, SolrClient client ) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName(coreName); req.setOtherCoreName(newName); req.setAction( CoreAdminAction.RENAME ); return req.process( client ); }
public static CoreAdminResponse renameCore(String coreName, String newName, SolrServer server ) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName(coreName); req.setOtherCoreName(newName); req.setAction( CoreAdminAction.RENAME ); return req.process( server ); }
public static CoreAdminResponse aliasCore(String coreName, String newName, SolrServer server ) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName(coreName); req.setOtherCoreName(newName); req.setAction( CoreAdminAction.ALIAS ); return req.process( server ); }
/** * Swap two existing cores. * @param core1 name of the first core * @param core2 name of the other core * @param client SolrClient to use * @return response * @throws SolrServerException if one or both cores don't exist * @throws IOException on IO errors */ public static CoreAdminResponse swapCore(String core1, String core2, SolrClient client) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName(core1); req.setOtherCoreName(core2); req.setAction( CoreAdminAction.SWAP ); return req.process( client ); }
/** * Rename an existing core. * * @throws IllegalArgumentException if the new core name contains invalid characters. */ public static CoreAdminResponse renameCore(String coreName, String newName, SolrClient client ) throws SolrServerException, IOException { CoreAdminRequest req = new CoreAdminRequest(); req.setCoreName(coreName); req.setOtherCoreName(SolrIdentifierValidator.validateCoreName(newName)); req.setAction( CoreAdminAction.RENAME ); return req.process( client ); }
swapRequest.setCoreName(indexName); swapRequest.setOtherCoreName(tempIndexName); swapRequest.setAction(CoreAdminParams.CoreAdminAction.SWAP); swapRequest.setCoreName(tempIndexName); swapRequest.setOtherCoreName(indexName); swapRequest.setAction(CoreAdminParams.CoreAdminAction.SWAP);