mirror of https://github.com/apache/lucene.git
deprecation cleaning
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1307347 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
42141717a3
commit
d46c69e9ad
|
@ -147,11 +147,6 @@ public class CoreAdminHandler extends RequestHandlerBase {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case ALIAS: {
|
|
||||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "'ALIAS' is not supported " +
|
|
||||||
req.getParams().get(CoreAdminParams.ACTION));
|
|
||||||
}
|
|
||||||
|
|
||||||
case UNLOAD: {
|
case UNLOAD: {
|
||||||
doPersist = this.handleUnloadAction(req, rsp);
|
doPersist = this.handleUnloadAction(req, rsp);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -419,15 +419,6 @@ public class CoreAdminRequest extends SolrRequest
|
||||||
return req.process( server );
|
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 );
|
|
||||||
}
|
|
||||||
|
|
||||||
public static CoreAdminResponse getStatus( String name, SolrServer server ) throws SolrServerException, IOException
|
public static CoreAdminResponse getStatus( String name, SolrServer server ) throws SolrServerException, IOException
|
||||||
{
|
{
|
||||||
CoreAdminRequest req = new CoreAdminRequest();
|
CoreAdminRequest req = new CoreAdminRequest();
|
||||||
|
|
|
@ -87,8 +87,6 @@ public interface CoreAdminParams
|
||||||
PERSIST,
|
PERSIST,
|
||||||
SWAP,
|
SWAP,
|
||||||
RENAME,
|
RENAME,
|
||||||
@Deprecated
|
|
||||||
ALIAS,
|
|
||||||
MERGEINDEXES,
|
MERGEINDEXES,
|
||||||
PREPRECOVERY,
|
PREPRECOVERY,
|
||||||
REQUESTRECOVERY,
|
REQUESTRECOVERY,
|
||||||
|
|
Loading…
Reference in New Issue