From d46c69e9adb26ce2afa9b8241572b633369380bb Mon Sep 17 00:00:00 2001 From: Sami Siren Date: Fri, 30 Mar 2012 10:21:29 +0000 Subject: [PATCH] deprecation cleaning git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1307347 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/handler/admin/CoreAdminHandler.java | 5 ----- .../solr/client/solrj/request/CoreAdminRequest.java | 9 --------- .../org/apache/solr/common/params/CoreAdminParams.java | 2 -- 3 files changed, 16 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java index 55614352a35..88aaf89edf1 100644 --- a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java +++ b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java @@ -147,11 +147,6 @@ public class CoreAdminHandler extends RequestHandlerBase { break; } - case ALIAS: { - throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "'ALIAS' is not supported " + - req.getParams().get(CoreAdminParams.ACTION)); - } - case UNLOAD: { doPersist = this.handleUnloadAction(req, rsp); break; diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CoreAdminRequest.java b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CoreAdminRequest.java index bd7c28b8dbb..1c55fcd7579 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CoreAdminRequest.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CoreAdminRequest.java @@ -419,15 +419,6 @@ public class CoreAdminRequest extends SolrRequest 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 { CoreAdminRequest req = new CoreAdminRequest(); diff --git a/solr/solrj/src/java/org/apache/solr/common/params/CoreAdminParams.java b/solr/solrj/src/java/org/apache/solr/common/params/CoreAdminParams.java index cc8a958e427..1a22ee6895b 100644 --- a/solr/solrj/src/java/org/apache/solr/common/params/CoreAdminParams.java +++ b/solr/solrj/src/java/org/apache/solr/common/params/CoreAdminParams.java @@ -87,8 +87,6 @@ public interface CoreAdminParams PERSIST, SWAP, RENAME, - @Deprecated - ALIAS, MERGEINDEXES, PREPRECOVERY, REQUESTRECOVERY,