[Rename] server cli and client (#254)
This commit refactors the o.e.cli and o.e.client packages from elasticsearch to o.opensearch.cli and o.opensearch.client packages in the server module, respectively. Signed-off-by: Nicholas Knize <nknize@amazon.com>
This commit is contained in:
parent
7dcbe07b04
commit
452f6e1b81
|
@ -27,7 +27,7 @@ import org.elasticsearch.action.search.SearchResponse;
|
||||||
import org.opensearch.client.benchmark.AbstractBenchmark;
|
import org.opensearch.client.benchmark.AbstractBenchmark;
|
||||||
import org.opensearch.client.benchmark.ops.bulk.BulkRequestExecutor;
|
import org.opensearch.client.benchmark.ops.bulk.BulkRequestExecutor;
|
||||||
import org.opensearch.client.benchmark.ops.search.SearchRequestExecutor;
|
import org.opensearch.client.benchmark.ops.search.SearchRequestExecutor;
|
||||||
import org.elasticsearch.client.transport.TransportClient;
|
import org.opensearch.client.transport.TransportClient;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.transport.TransportAddress;
|
import org.elasticsearch.common.transport.TransportAddress;
|
||||||
import org.elasticsearch.common.xcontent.XContentType;
|
import org.elasticsearch.common.xcontent.XContentType;
|
||||||
|
|
|
@ -25,8 +25,8 @@ import org.opensearch.action.bulk.BulkRequest;
|
||||||
import org.opensearch.action.bulk.BulkShardRequest;
|
import org.opensearch.action.bulk.BulkShardRequest;
|
||||||
import org.opensearch.action.support.ActiveShardCount;
|
import org.opensearch.action.support.ActiveShardCount;
|
||||||
import org.elasticsearch.action.update.UpdateResponse;
|
import org.elasticsearch.action.update.UpdateResponse;
|
||||||
import org.elasticsearch.client.Requests;
|
import org.opensearch.client.Requests;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||||
import org.elasticsearch.index.shard.ShardId;
|
import org.elasticsearch.index.shard.ShardId;
|
||||||
import org.opensearch.rest.BaseRestHandler;
|
import org.opensearch.rest.BaseRestHandler;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
package org.opensearch.plugin.noop.action.search;
|
package org.opensearch.plugin.noop.action.search;
|
||||||
|
|
||||||
import org.elasticsearch.action.search.SearchRequest;
|
import org.elasticsearch.action.search.SearchRequest;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.opensearch.rest.BaseRestHandler;
|
import org.opensearch.rest.BaseRestHandler;
|
||||||
import org.opensearch.rest.RestRequest;
|
import org.opensearch.rest.RestRequest;
|
||||||
import org.opensearch.rest.action.RestStatusToXContentListener;
|
import org.opensearch.rest.action.RestStatusToXContentListener;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
package org.elasticsearch.client.core.tasks;
|
package org.elasticsearch.client.core.tasks;
|
||||||
|
|
||||||
import org.elasticsearch.client.Requests;
|
import org.opensearch.client.Requests;
|
||||||
import org.elasticsearch.client.tasks.GetTaskResponse;
|
import org.elasticsearch.client.tasks.GetTaskResponse;
|
||||||
import org.elasticsearch.common.bytes.BytesReference;
|
import org.elasticsearch.common.bytes.BytesReference;
|
||||||
import org.elasticsearch.common.xcontent.ToXContent;
|
import org.elasticsearch.common.xcontent.ToXContent;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.transport.client;
|
||||||
import io.netty.util.ThreadDeathWatcher;
|
import io.netty.util.ThreadDeathWatcher;
|
||||||
import io.netty.util.concurrent.GlobalEventExecutor;
|
import io.netty.util.concurrent.GlobalEventExecutor;
|
||||||
|
|
||||||
import org.elasticsearch.client.transport.TransportClient;
|
import org.opensearch.client.transport.TransportClient;
|
||||||
import org.elasticsearch.common.SuppressForbidden;
|
import org.elasticsearch.common.SuppressForbidden;
|
||||||
import org.elasticsearch.common.network.NetworkModule;
|
import org.elasticsearch.common.network.NetworkModule;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.opensearch.transport.client;
|
package org.opensearch.transport.client;
|
||||||
|
|
||||||
import com.carrotsearch.randomizedtesting.RandomizedTest;
|
import com.carrotsearch.randomizedtesting.RandomizedTest;
|
||||||
import org.elasticsearch.client.transport.TransportClient;
|
import org.opensearch.client.transport.TransportClient;
|
||||||
import org.elasticsearch.common.network.NetworkModule;
|
import org.elasticsearch.common.network.NetworkModule;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.opensearch.index.reindex.ReindexPlugin;
|
import org.opensearch.index.reindex.ReindexPlugin;
|
||||||
|
|
|
@ -26,7 +26,7 @@ import java.util.Arrays;
|
||||||
import joptsimple.OptionSet;
|
import joptsimple.OptionSet;
|
||||||
import joptsimple.OptionSpec;
|
import joptsimple.OptionSpec;
|
||||||
import org.opensearch.cli.ExitCodes;
|
import org.opensearch.cli.ExitCodes;
|
||||||
import org.elasticsearch.cli.KeyStoreAwareCommand;
|
import org.opensearch.cli.KeyStoreAwareCommand;
|
||||||
import org.opensearch.cli.Terminal;
|
import org.opensearch.cli.Terminal;
|
||||||
import org.opensearch.cli.UserException;
|
import org.opensearch.cli.UserException;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
package org.elasticsearch.common.settings;
|
package org.elasticsearch.common.settings;
|
||||||
|
|
||||||
import org.elasticsearch.cli.LoggingAwareMultiCommand;
|
import org.opensearch.cli.LoggingAwareMultiCommand;
|
||||||
import org.opensearch.cli.Terminal;
|
import org.opensearch.cli.Terminal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -38,7 +38,7 @@ import org.bouncycastle.openpgp.operator.jcajce.JcaPGPContentVerifierBuilderProv
|
||||||
import org.elasticsearch.Build;
|
import org.elasticsearch.Build;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.bootstrap.JarHell;
|
import org.elasticsearch.bootstrap.JarHell;
|
||||||
import org.elasticsearch.cli.EnvironmentAwareCommand;
|
import org.opensearch.cli.EnvironmentAwareCommand;
|
||||||
import org.opensearch.cli.ExitCodes;
|
import org.opensearch.cli.ExitCodes;
|
||||||
import org.opensearch.cli.Terminal;
|
import org.opensearch.cli.Terminal;
|
||||||
import org.opensearch.cli.UserException;
|
import org.opensearch.cli.UserException;
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.plugins;
|
||||||
|
|
||||||
import joptsimple.OptionSet;
|
import joptsimple.OptionSet;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.cli.EnvironmentAwareCommand;
|
import org.opensearch.cli.EnvironmentAwareCommand;
|
||||||
import org.opensearch.cli.Terminal;
|
import org.opensearch.cli.Terminal;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.plugins;
|
||||||
|
|
||||||
import org.elasticsearch.core.internal.io.IOUtils;
|
import org.elasticsearch.core.internal.io.IOUtils;
|
||||||
import org.opensearch.cli.Command;
|
import org.opensearch.cli.Command;
|
||||||
import org.elasticsearch.cli.LoggingAwareMultiCommand;
|
import org.opensearch.cli.LoggingAwareMultiCommand;
|
||||||
import org.opensearch.cli.Terminal;
|
import org.opensearch.cli.Terminal;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.plugins;
|
||||||
|
|
||||||
import joptsimple.OptionSet;
|
import joptsimple.OptionSet;
|
||||||
import joptsimple.OptionSpec;
|
import joptsimple.OptionSpec;
|
||||||
import org.elasticsearch.cli.EnvironmentAwareCommand;
|
import org.opensearch.cli.EnvironmentAwareCommand;
|
||||||
import org.opensearch.cli.ExitCodes;
|
import org.opensearch.cli.ExitCodes;
|
||||||
import org.opensearch.cli.Terminal;
|
import org.opensearch.cli.Terminal;
|
||||||
import org.opensearch.cli.UserException;
|
import org.opensearch.cli.UserException;
|
||||||
|
|
|
@ -112,7 +112,7 @@ import org.apache.lucene.analysis.tr.TurkishAnalyzer;
|
||||||
import org.apache.lucene.analysis.util.ElisionFilter;
|
import org.apache.lucene.analysis.util.ElisionFilter;
|
||||||
import org.apache.lucene.util.SetOnce;
|
import org.apache.lucene.util.SetOnce;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
|
@ -131,11 +131,11 @@ import org.elasticsearch.index.analysis.PreConfiguredTokenFilter;
|
||||||
import org.elasticsearch.index.analysis.PreConfiguredTokenizer;
|
import org.elasticsearch.index.analysis.PreConfiguredTokenizer;
|
||||||
import org.elasticsearch.index.analysis.TokenFilterFactory;
|
import org.elasticsearch.index.analysis.TokenFilterFactory;
|
||||||
import org.elasticsearch.index.analysis.TokenizerFactory;
|
import org.elasticsearch.index.analysis.TokenizerFactory;
|
||||||
import org.elasticsearch.indices.analysis.AnalysisModule.AnalysisProvider;
|
import org.opensearch.indices.analysis.AnalysisModule.AnalysisProvider;
|
||||||
import org.elasticsearch.indices.analysis.PreBuiltCacheFactory.CachingStrategy;
|
import org.opensearch.indices.analysis.PreBuiltCacheFactory.CachingStrategy;
|
||||||
import org.elasticsearch.plugins.AnalysisPlugin;
|
import org.opensearch.plugins.AnalysisPlugin;
|
||||||
import org.elasticsearch.plugins.Plugin;
|
import org.opensearch.plugins.Plugin;
|
||||||
import org.elasticsearch.plugins.ScriptPlugin;
|
import org.opensearch.plugins.ScriptPlugin;
|
||||||
import org.opensearch.repositories.RepositoriesService;
|
import org.opensearch.repositories.RepositoriesService;
|
||||||
import org.opensearch.script.ScriptContext;
|
import org.opensearch.script.ScriptContext;
|
||||||
import org.opensearch.script.ScriptService;
|
import org.opensearch.script.ScriptService;
|
||||||
|
@ -152,7 +152,7 @@ import java.util.Map;
|
||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
import static org.elasticsearch.plugins.AnalysisPlugin.requiresAnalysisSettings;
|
import static org.opensearch.plugins.AnalysisPlugin.requiresAnalysisSettings;
|
||||||
|
|
||||||
public class CommonAnalysisPlugin extends Plugin implements AnalysisPlugin, ScriptPlugin {
|
public class CommonAnalysisPlugin extends Plugin implements AnalysisPlugin, ScriptPlugin {
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import java.io.IOException;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import static org.elasticsearch.client.Requests.searchRequest;
|
import static org.opensearch.client.Requests.searchRequest;
|
||||||
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.boolQuery;
|
import static org.elasticsearch.index.query.QueryBuilders.boolQuery;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.matchPhrasePrefixQuery;
|
import static org.elasticsearch.index.query.QueryBuilders.matchPhrasePrefixQuery;
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.opensearch.action.ActionResponse;
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
package org.opensearch.script.mustache;
|
package org.opensearch.script.mustache;
|
||||||
|
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.logging.DeprecationLogger;
|
import org.elasticsearch.common.logging.DeprecationLogger;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.opensearch.rest.BaseRestHandler;
|
import org.opensearch.rest.BaseRestHandler;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
package org.opensearch.script.mustache;
|
package org.opensearch.script.mustache;
|
||||||
|
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.xcontent.XContentParser;
|
import org.elasticsearch.common.xcontent.XContentParser;
|
||||||
import org.opensearch.rest.BaseRestHandler;
|
import org.opensearch.rest.BaseRestHandler;
|
||||||
import org.opensearch.rest.RestRequest;
|
import org.opensearch.rest.RestRequest;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.opensearch.script.mustache;
|
package org.opensearch.script.mustache;
|
||||||
|
|
||||||
import org.elasticsearch.action.search.SearchRequest;
|
import org.elasticsearch.action.search.SearchRequest;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.xcontent.XContentParser;
|
import org.elasticsearch.common.xcontent.XContentParser;
|
||||||
import org.opensearch.rest.BaseRestHandler;
|
import org.opensearch.rest.BaseRestHandler;
|
||||||
import org.opensearch.rest.RestRequest;
|
import org.opensearch.rest.RestRequest;
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.script.mustache;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.action.search.SearchRequest;
|
import org.elasticsearch.action.search.SearchRequest;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.opensearch.script.ScriptType;
|
import org.opensearch.script.ScriptType;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.elasticsearch.action.search.MultiSearchResponse;
|
||||||
import org.elasticsearch.action.search.SearchRequest;
|
import org.elasticsearch.action.search.SearchRequest;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||||
import org.opensearch.script.ScriptService;
|
import org.opensearch.script.ScriptService;
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.elasticsearch.action.search.SearchRequest;
|
||||||
import org.elasticsearch.action.search.SearchResponse;
|
import org.elasticsearch.action.search.SearchResponse;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.bytes.BytesArray;
|
import org.elasticsearch.common.bytes.BytesArray;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
|
import org.elasticsearch.common.xcontent.LoggingDeprecationHandler;
|
||||||
|
|
|
@ -23,7 +23,7 @@ package org.opensearch.painless;
|
||||||
import org.apache.lucene.util.SetOnce;
|
import org.apache.lucene.util.SetOnce;
|
||||||
import org.opensearch.action.ActionRequest;
|
import org.opensearch.action.ActionRequest;
|
||||||
import org.opensearch.action.ActionResponse;
|
import org.opensearch.action.ActionResponse;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.opensearch.cluster.node.DiscoveryNodes;
|
import org.opensearch.cluster.node.DiscoveryNodes;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
|
@ -41,10 +41,10 @@ import org.opensearch.painless.action.PainlessExecuteAction;
|
||||||
import org.opensearch.painless.spi.PainlessExtension;
|
import org.opensearch.painless.spi.PainlessExtension;
|
||||||
import org.opensearch.painless.spi.Whitelist;
|
import org.opensearch.painless.spi.Whitelist;
|
||||||
import org.opensearch.painless.spi.WhitelistLoader;
|
import org.opensearch.painless.spi.WhitelistLoader;
|
||||||
import org.elasticsearch.plugins.ActionPlugin;
|
import org.opensearch.plugins.ActionPlugin;
|
||||||
import org.elasticsearch.plugins.ExtensiblePlugin;
|
import org.opensearch.plugins.ExtensiblePlugin;
|
||||||
import org.elasticsearch.plugins.Plugin;
|
import org.opensearch.plugins.Plugin;
|
||||||
import org.elasticsearch.plugins.ScriptPlugin;
|
import org.opensearch.plugins.ScriptPlugin;
|
||||||
import org.opensearch.repositories.RepositoriesService;
|
import org.opensearch.repositories.RepositoriesService;
|
||||||
import org.opensearch.rest.RestController;
|
import org.opensearch.rest.RestController;
|
||||||
import org.opensearch.rest.RestHandler;
|
import org.opensearch.rest.RestHandler;
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.opensearch.action.ActionResponse;
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.ParseField;
|
import org.elasticsearch.common.ParseField;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
|
|
|
@ -39,7 +39,7 @@ import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.IndicesOptions;
|
import org.opensearch.action.support.IndicesOptions;
|
||||||
import org.elasticsearch.action.support.single.shard.SingleShardRequest;
|
import org.elasticsearch.action.support.single.shard.SingleShardRequest;
|
||||||
import org.elasticsearch.action.support.single.shard.TransportSingleShardAction;
|
import org.elasticsearch.action.support.single.shard.TransportSingleShardAction;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.opensearch.cluster.ClusterState;
|
import org.opensearch.cluster.ClusterState;
|
||||||
import org.opensearch.cluster.block.ClusterBlockException;
|
import org.opensearch.cluster.block.ClusterBlockException;
|
||||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.apache.lucene.search.join.ScoreMode;
|
||||||
import org.elasticsearch.action.index.IndexRequestBuilder;
|
import org.elasticsearch.action.index.IndexRequestBuilder;
|
||||||
import org.elasticsearch.action.search.SearchResponse;
|
import org.elasticsearch.action.search.SearchResponse;
|
||||||
import org.elasticsearch.action.update.UpdateResponse;
|
import org.elasticsearch.action.update.UpdateResponse;
|
||||||
import org.elasticsearch.client.Requests;
|
import org.opensearch.client.Requests;
|
||||||
import org.opensearch.cluster.metadata.IndexMetadata;
|
import org.opensearch.cluster.metadata.IndexMetadata;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.search.SearchHit;
|
import org.elasticsearch.search.SearchHit;
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.index.rankeval;
|
||||||
|
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
public class RankEvalRequestBuilder extends ActionRequestBuilder<RankEvalRequest, RankEvalResponse> {
|
public class RankEvalRequestBuilder extends ActionRequestBuilder<RankEvalRequest, RankEvalResponse> {
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.index.rankeval;
|
||||||
|
|
||||||
import org.elasticsearch.action.search.SearchType;
|
import org.elasticsearch.action.search.SearchType;
|
||||||
import org.opensearch.action.support.IndicesOptions;
|
import org.opensearch.action.support.IndicesOptions;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.Strings;
|
import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.common.xcontent.XContentParser;
|
import org.elasticsearch.common.xcontent.XContentParser;
|
||||||
import org.opensearch.rest.BaseRestHandler;
|
import org.opensearch.rest.BaseRestHandler;
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.elasticsearch.action.search.MultiSearchResponse.Item;
|
||||||
import org.elasticsearch.action.search.SearchRequest;
|
import org.elasticsearch.action.search.SearchRequest;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.common.bytes.BytesArray;
|
import org.elasticsearch.common.bytes.BytesArray;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.elasticsearch.action.search.MultiSearchResponse;
|
||||||
import org.elasticsearch.action.search.SearchType;
|
import org.elasticsearch.action.search.SearchType;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.IndicesOptions;
|
import org.opensearch.action.support.IndicesOptions;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.client.documentation;
|
||||||
import org.opensearch.action.ActionListener;
|
import org.opensearch.action.ActionListener;
|
||||||
import org.opensearch.action.admin.cluster.node.tasks.get.GetTaskResponse;
|
import org.opensearch.action.admin.cluster.node.tasks.get.GetTaskResponse;
|
||||||
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.index.IndexModule;
|
import org.elasticsearch.index.IndexModule;
|
||||||
import org.elasticsearch.index.engine.Engine;
|
import org.elasticsearch.index.engine.Engine;
|
||||||
import org.elasticsearch.index.query.QueryBuilders;
|
import org.elasticsearch.index.query.QueryBuilders;
|
||||||
|
|
|
@ -35,7 +35,7 @@ import org.opensearch.action.bulk.Retry;
|
||||||
import org.elasticsearch.action.delete.DeleteRequest;
|
import org.elasticsearch.action.delete.DeleteRequest;
|
||||||
import org.elasticsearch.action.index.IndexRequest;
|
import org.elasticsearch.action.index.IndexRequest;
|
||||||
import org.opensearch.action.support.TransportAction;
|
import org.opensearch.action.support.TransportAction;
|
||||||
import org.elasticsearch.client.ParentTaskAssigningClient;
|
import org.opensearch.client.ParentTaskAssigningClient;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
import org.elasticsearch.common.unit.ByteSizeValue;
|
import org.elasticsearch.common.unit.ByteSizeValue;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.index.reindex;
|
||||||
import org.opensearch.action.ActionRequestValidationException;
|
import org.opensearch.action.ActionRequestValidationException;
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.support.ActiveShardCount;
|
import org.opensearch.action.support.ActiveShardCount;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||||
import org.opensearch.rest.BaseRestHandler;
|
import org.opensearch.rest.BaseRestHandler;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.index.reindex;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.opensearch.action.ActionListener;
|
import org.opensearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.delete.DeleteRequest;
|
import org.elasticsearch.action.delete.DeleteRequest;
|
||||||
import org.elasticsearch.client.ParentTaskAssigningClient;
|
import org.opensearch.client.ParentTaskAssigningClient;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
||||||
import org.elasticsearch.index.reindex.DeleteByQueryRequest;
|
import org.elasticsearch.index.reindex.DeleteByQueryRequest;
|
||||||
|
|
|
@ -24,7 +24,9 @@ import org.opensearch.action.ActionListener;
|
||||||
import org.opensearch.action.admin.cluster.shards.ClusterSearchShardsRequest;
|
import org.opensearch.action.admin.cluster.shards.ClusterSearchShardsRequest;
|
||||||
import org.opensearch.action.admin.cluster.shards.ClusterSearchShardsResponse;
|
import org.opensearch.action.admin.cluster.shards.ClusterSearchShardsResponse;
|
||||||
import org.elasticsearch.action.search.SearchRequest;
|
import org.elasticsearch.action.search.SearchRequest;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
|
import org.opensearch.cluster.node.DiscoveryNode;
|
||||||
|
import org.opensearch.client.Client;
|
||||||
import org.opensearch.cluster.node.DiscoveryNode;
|
import org.opensearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.index.Index;
|
import org.elasticsearch.index.Index;
|
||||||
import org.elasticsearch.index.mapper.IdFieldMapper;
|
import org.elasticsearch.index.mapper.IdFieldMapper;
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.opensearch.index.reindex;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequest;
|
import org.opensearch.action.ActionRequest;
|
||||||
import org.opensearch.action.ActionResponse;
|
import org.opensearch.action.ActionResponse;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.opensearch.cluster.node.DiscoveryNodes;
|
import org.opensearch.cluster.node.DiscoveryNodes;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
|
@ -38,8 +38,8 @@ import org.elasticsearch.index.reindex.BulkByScrollTask;
|
||||||
import org.elasticsearch.index.reindex.DeleteByQueryAction;
|
import org.elasticsearch.index.reindex.DeleteByQueryAction;
|
||||||
import org.elasticsearch.index.reindex.ReindexAction;
|
import org.elasticsearch.index.reindex.ReindexAction;
|
||||||
import org.elasticsearch.index.reindex.UpdateByQueryAction;
|
import org.elasticsearch.index.reindex.UpdateByQueryAction;
|
||||||
import org.elasticsearch.plugins.ActionPlugin;
|
import org.opensearch.plugins.ActionPlugin;
|
||||||
import org.elasticsearch.plugins.Plugin;
|
import org.opensearch.plugins.Plugin;
|
||||||
import org.opensearch.repositories.RepositoriesService;
|
import org.opensearch.repositories.RepositoriesService;
|
||||||
import org.opensearch.rest.RestController;
|
import org.opensearch.rest.RestController;
|
||||||
import org.opensearch.rest.RestHandler;
|
import org.opensearch.rest.RestHandler;
|
||||||
|
|
|
@ -34,8 +34,8 @@ import org.opensearch.action.DocWriteRequest;
|
||||||
import org.opensearch.action.bulk.BackoffPolicy;
|
import org.opensearch.action.bulk.BackoffPolicy;
|
||||||
import org.opensearch.action.bulk.BulkItemResponse;
|
import org.opensearch.action.bulk.BulkItemResponse;
|
||||||
import org.elasticsearch.action.index.IndexRequest;
|
import org.elasticsearch.action.index.IndexRequest;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.client.ParentTaskAssigningClient;
|
import org.opensearch.client.ParentTaskAssigningClient;
|
||||||
import org.elasticsearch.client.RestClient;
|
import org.elasticsearch.client.RestClient;
|
||||||
import org.elasticsearch.client.RestClientBuilder;
|
import org.elasticsearch.client.RestClientBuilder;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
package org.opensearch.index.reindex;
|
package org.opensearch.index.reindex;
|
||||||
|
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.opensearch.rest.RestRequest;
|
import org.opensearch.rest.RestRequest;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.opensearch.index.reindex;
|
package org.opensearch.index.reindex;
|
||||||
|
|
||||||
import org.opensearch.action.DocWriteRequest;
|
import org.opensearch.action.DocWriteRequest;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.xcontent.XContentParser;
|
import org.elasticsearch.common.xcontent.XContentParser;
|
||||||
import org.opensearch.rest.RestRequest;
|
import org.opensearch.rest.RestRequest;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
package org.opensearch.index.reindex;
|
package org.opensearch.index.reindex;
|
||||||
|
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.opensearch.cluster.node.DiscoveryNodes;
|
import org.opensearch.cluster.node.DiscoveryNodes;
|
||||||
import org.opensearch.rest.BaseRestHandler;
|
import org.opensearch.rest.BaseRestHandler;
|
||||||
import org.opensearch.rest.RestRequest;
|
import org.opensearch.rest.RestRequest;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
package org.opensearch.index.reindex;
|
package org.opensearch.index.reindex;
|
||||||
|
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.opensearch.rest.RestRequest;
|
import org.opensearch.rest.RestRequest;
|
||||||
import org.opensearch.script.Script;
|
import org.opensearch.script.Script;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.index.reindex;
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
||||||
import org.elasticsearch.action.support.tasks.TasksRequestBuilder;
|
import org.elasticsearch.action.support.tasks.TasksRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Java API support for changing the throttle on reindex tasks while they are running.
|
* Java API support for changing the throttle on reindex tasks while they are running.
|
||||||
|
|
|
@ -22,8 +22,8 @@ package org.opensearch.index.reindex;
|
||||||
import org.opensearch.action.ActionListener;
|
import org.opensearch.action.ActionListener;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.client.ParentTaskAssigningClient;
|
import org.opensearch.client.ParentTaskAssigningClient;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.io.stream.Writeable;
|
import org.elasticsearch.common.io.stream.Writeable;
|
||||||
|
|
|
@ -23,7 +23,9 @@ import org.opensearch.action.ActionListener;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.AutoCreateIndex;
|
import org.opensearch.action.support.AutoCreateIndex;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
|
import org.opensearch.client.Client;
|
||||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.opensearch.action.TaskOperationFailure;
|
||||||
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.tasks.TransportTasksAction;
|
import org.elasticsearch.action.support.tasks.TransportTasksAction;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
||||||
|
|
|
@ -25,8 +25,8 @@ import org.opensearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.index.IndexRequest;
|
import org.elasticsearch.action.index.IndexRequest;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.client.ParentTaskAssigningClient;
|
import org.opensearch.client.ParentTaskAssigningClient;
|
||||||
import org.opensearch.cluster.ClusterState;
|
import org.opensearch.cluster.ClusterState;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
|
|
@ -53,9 +53,9 @@ import org.opensearch.action.support.PlainActionFuture;
|
||||||
import org.opensearch.action.support.TransportAction;
|
import org.opensearch.action.support.TransportAction;
|
||||||
import org.elasticsearch.action.update.UpdateRequest;
|
import org.elasticsearch.action.update.UpdateRequest;
|
||||||
import org.elasticsearch.action.update.UpdateResponse;
|
import org.elasticsearch.action.update.UpdateResponse;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.client.FilterClient;
|
import org.opensearch.client.FilterClient;
|
||||||
import org.elasticsearch.client.ParentTaskAssigningClient;
|
import org.opensearch.client.ParentTaskAssigningClient;
|
||||||
import org.opensearch.cluster.node.DiscoveryNode;
|
import org.opensearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.common.CheckedConsumer;
|
import org.elasticsearch.common.CheckedConsumer;
|
||||||
import org.elasticsearch.common.bytes.BytesArray;
|
import org.elasticsearch.common.bytes.BytesArray;
|
||||||
|
|
|
@ -30,8 +30,8 @@ import org.elasticsearch.action.search.SearchRequest;
|
||||||
import org.elasticsearch.action.search.SearchResponse;
|
import org.elasticsearch.action.search.SearchResponse;
|
||||||
import org.elasticsearch.action.search.SearchScrollAction;
|
import org.elasticsearch.action.search.SearchScrollAction;
|
||||||
import org.elasticsearch.action.search.SearchScrollRequest;
|
import org.elasticsearch.action.search.SearchScrollRequest;
|
||||||
import org.elasticsearch.client.ParentTaskAssigningClient;
|
import org.opensearch.client.ParentTaskAssigningClient;
|
||||||
import org.elasticsearch.client.support.AbstractClient;
|
import org.opensearch.client.support.AbstractClient;
|
||||||
import org.elasticsearch.common.bytes.BytesArray;
|
import org.elasticsearch.common.bytes.BytesArray;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.text.Text;
|
import org.elasticsearch.common.text.Text;
|
||||||
|
|
|
@ -30,7 +30,7 @@ import org.elasticsearch.action.search.SearchAction;
|
||||||
import org.opensearch.action.support.ActionFilter;
|
import org.opensearch.action.support.ActionFilter;
|
||||||
import org.opensearch.action.support.ActionFilterChain;
|
import org.opensearch.action.support.ActionFilterChain;
|
||||||
import org.opensearch.action.support.WriteRequest.RefreshPolicy;
|
import org.opensearch.action.support.WriteRequest.RefreshPolicy;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.bytes.BytesArray;
|
import org.elasticsearch.common.bytes.BytesArray;
|
||||||
|
@ -42,12 +42,12 @@ import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.env.NodeEnvironment;
|
import org.elasticsearch.env.NodeEnvironment;
|
||||||
import org.elasticsearch.http.HttpInfo;
|
import org.opensearch.http.HttpInfo;
|
||||||
import org.elasticsearch.index.reindex.ReindexAction;
|
import org.elasticsearch.index.reindex.ReindexAction;
|
||||||
import org.elasticsearch.index.reindex.ReindexRequestBuilder;
|
import org.elasticsearch.index.reindex.ReindexRequestBuilder;
|
||||||
import org.elasticsearch.index.reindex.RemoteInfo;
|
import org.elasticsearch.index.reindex.RemoteInfo;
|
||||||
import org.elasticsearch.plugins.ActionPlugin;
|
import org.opensearch.plugins.ActionPlugin;
|
||||||
import org.elasticsearch.plugins.Plugin;
|
import org.opensearch.plugins.Plugin;
|
||||||
import org.opensearch.repositories.RepositoriesService;
|
import org.opensearch.repositories.RepositoriesService;
|
||||||
import org.opensearch.rest.RestHeaderDefinition;
|
import org.opensearch.rest.RestHeaderDefinition;
|
||||||
import org.opensearch.rest.RestStatus;
|
import org.opensearch.rest.RestStatus;
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.opensearch.action.bulk.BackoffPolicy;
|
||||||
import org.opensearch.action.bulk.BulkRequestBuilder;
|
import org.opensearch.action.bulk.BulkRequestBuilder;
|
||||||
import org.opensearch.action.bulk.BulkResponse;
|
import org.opensearch.action.bulk.BulkResponse;
|
||||||
import org.opensearch.action.bulk.Retry;
|
import org.opensearch.action.bulk.Retry;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.common.bytes.BytesArray;
|
import org.elasticsearch.common.bytes.BytesArray;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.transport.TransportAddress;
|
import org.elasticsearch.common.transport.TransportAddress;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.action.ActionListener;
|
||||||
import org.opensearch.action.FailedNodeException;
|
import org.opensearch.action.FailedNodeException;
|
||||||
import org.opensearch.action.TaskOperationFailure;
|
import org.opensearch.action.TaskOperationFailure;
|
||||||
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
import org.elasticsearch.index.reindex.BulkByScrollResponse;
|
||||||
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
import org.elasticsearch.index.reindex.BulkByScrollTask;
|
||||||
import org.opensearch.tasks.TaskId;
|
import org.opensearch.tasks.TaskId;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.action.admin.cluster.snapshots.create.CreateSnapshotRespon
|
||||||
import org.opensearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse;
|
import org.opensearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse;
|
||||||
import org.opensearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse;
|
import org.opensearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.unit.ByteSizeUnit;
|
import org.elasticsearch.common.unit.ByteSizeUnit;
|
||||||
import org.opensearch.plugin.repository.url.URLRepositoryPlugin;
|
import org.opensearch.plugin.repository.url.URLRepositoryPlugin;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.apache.lucene.util.SetOnce;
|
import org.apache.lucene.util.SetOnce;
|
||||||
import org.elasticsearch.Build;
|
import org.elasticsearch.Build;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
|
@ -31,8 +31,8 @@ import org.elasticsearch.common.unit.TimeValue;
|
||||||
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.env.NodeEnvironment;
|
import org.elasticsearch.env.NodeEnvironment;
|
||||||
import org.elasticsearch.plugins.ClusterPlugin;
|
import org.opensearch.plugins.ClusterPlugin;
|
||||||
import org.elasticsearch.plugins.Plugin;
|
import org.opensearch.plugins.Plugin;
|
||||||
import org.opensearch.repositories.RepositoriesService;
|
import org.opensearch.repositories.RepositoriesService;
|
||||||
import org.opensearch.script.ScriptService;
|
import org.opensearch.script.ScriptService;
|
||||||
import org.opensearch.threadpool.Scheduler;
|
import org.opensearch.threadpool.Scheduler;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.opensearch.rest.discovery;
|
||||||
import org.apache.http.HttpHost;
|
import org.apache.http.HttpHost;
|
||||||
import org.opensearch.OpenSearchNetty4IntegTestCase;
|
import org.opensearch.OpenSearchNetty4IntegTestCase;
|
||||||
import org.opensearch.action.admin.cluster.health.ClusterHealthResponse;
|
import org.opensearch.action.admin.cluster.health.ClusterHealthResponse;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.client.Node;
|
import org.elasticsearch.client.Node;
|
||||||
import org.elasticsearch.client.Request;
|
import org.elasticsearch.client.Request;
|
||||||
import org.elasticsearch.client.Response;
|
import org.elasticsearch.client.Response;
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.opensearch.OpenSearchNetty4IntegTestCase;
|
||||||
import org.opensearch.action.admin.cluster.health.ClusterHealthResponse;
|
import org.opensearch.action.admin.cluster.health.ClusterHealthResponse;
|
||||||
import org.opensearch.action.admin.cluster.node.info.NodeInfo;
|
import org.opensearch.action.admin.cluster.node.info.NodeInfo;
|
||||||
import org.opensearch.action.admin.cluster.node.info.NodesInfoResponse;
|
import org.opensearch.action.admin.cluster.node.info.NodesInfoResponse;
|
||||||
import org.elasticsearch.client.transport.TransportClient;
|
import org.opensearch.client.transport.TransportClient;
|
||||||
import org.opensearch.cluster.health.ClusterHealthStatus;
|
import org.opensearch.cluster.health.ClusterHealthStatus;
|
||||||
import org.elasticsearch.common.network.NetworkAddress;
|
import org.elasticsearch.common.network.NetworkAddress;
|
||||||
import org.elasticsearch.common.network.NetworkModule;
|
import org.elasticsearch.common.network.NetworkModule;
|
||||||
|
|
|
@ -744,10 +744,10 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
||||||
org.elasticsearch.OpenSearchSecurityException::new, 4, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.OpenSearchSecurityException::new, 4, UNKNOWN_VERSION_ADDED),
|
||||||
INDEX_SHARD_RESTORE_EXCEPTION(org.elasticsearch.index.snapshots.IndexShardRestoreException.class,
|
INDEX_SHARD_RESTORE_EXCEPTION(org.elasticsearch.index.snapshots.IndexShardRestoreException.class,
|
||||||
org.elasticsearch.index.snapshots.IndexShardRestoreException::new, 5, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.index.snapshots.IndexShardRestoreException::new, 5, UNKNOWN_VERSION_ADDED),
|
||||||
INDEX_CLOSED_EXCEPTION(org.elasticsearch.indices.IndexClosedException.class,
|
INDEX_CLOSED_EXCEPTION(org.opensearch.indices.IndexClosedException.class,
|
||||||
org.elasticsearch.indices.IndexClosedException::new, 6, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.IndexClosedException::new, 6, UNKNOWN_VERSION_ADDED),
|
||||||
BIND_HTTP_EXCEPTION(org.elasticsearch.http.BindHttpException.class,
|
BIND_HTTP_EXCEPTION(org.opensearch.http.BindHttpException.class,
|
||||||
org.elasticsearch.http.BindHttpException::new, 7, UNKNOWN_VERSION_ADDED),
|
org.opensearch.http.BindHttpException::new, 7, UNKNOWN_VERSION_ADDED),
|
||||||
REDUCE_SEARCH_PHASE_EXCEPTION(org.elasticsearch.action.search.ReduceSearchPhaseException.class,
|
REDUCE_SEARCH_PHASE_EXCEPTION(org.elasticsearch.action.search.ReduceSearchPhaseException.class,
|
||||||
org.elasticsearch.action.search.ReduceSearchPhaseException::new, 8, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.action.search.ReduceSearchPhaseException::new, 8, UNKNOWN_VERSION_ADDED),
|
||||||
NODE_CLOSED_EXCEPTION(org.opensearch.node.NodeClosedException.class,
|
NODE_CLOSED_EXCEPTION(org.opensearch.node.NodeClosedException.class,
|
||||||
|
@ -762,8 +762,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
||||||
org.elasticsearch.transport.NotSerializableTransportException::new, 13, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.transport.NotSerializableTransportException::new, 13, UNKNOWN_VERSION_ADDED),
|
||||||
RESPONSE_HANDLER_FAILURE_TRANSPORT_EXCEPTION(org.elasticsearch.transport.ResponseHandlerFailureTransportException.class,
|
RESPONSE_HANDLER_FAILURE_TRANSPORT_EXCEPTION(org.elasticsearch.transport.ResponseHandlerFailureTransportException.class,
|
||||||
org.elasticsearch.transport.ResponseHandlerFailureTransportException::new, 14, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.transport.ResponseHandlerFailureTransportException::new, 14, UNKNOWN_VERSION_ADDED),
|
||||||
INDEX_CREATION_EXCEPTION(org.elasticsearch.indices.IndexCreationException.class,
|
INDEX_CREATION_EXCEPTION(org.opensearch.indices.IndexCreationException.class,
|
||||||
org.elasticsearch.indices.IndexCreationException::new, 15, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.IndexCreationException::new, 15, UNKNOWN_VERSION_ADDED),
|
||||||
INDEX_NOT_FOUND_EXCEPTION(org.elasticsearch.index.IndexNotFoundException.class,
|
INDEX_NOT_FOUND_EXCEPTION(org.elasticsearch.index.IndexNotFoundException.class,
|
||||||
org.elasticsearch.index.IndexNotFoundException::new, 16, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.index.IndexNotFoundException::new, 16, UNKNOWN_VERSION_ADDED),
|
||||||
ILLEGAL_SHARD_ROUTING_STATE_EXCEPTION(org.elasticsearch.cluster.routing.IllegalShardRoutingStateException.class,
|
ILLEGAL_SHARD_ROUTING_STATE_EXCEPTION(org.elasticsearch.cluster.routing.IllegalShardRoutingStateException.class,
|
||||||
|
@ -791,12 +791,12 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
||||||
org.elasticsearch.index.engine.DocumentMissingException::new, 29, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.index.engine.DocumentMissingException::new, 29, UNKNOWN_VERSION_ADDED),
|
||||||
SNAPSHOT_EXCEPTION(org.opensearch.snapshots.SnapshotException.class,
|
SNAPSHOT_EXCEPTION(org.opensearch.snapshots.SnapshotException.class,
|
||||||
org.opensearch.snapshots.SnapshotException::new, 30, UNKNOWN_VERSION_ADDED),
|
org.opensearch.snapshots.SnapshotException::new, 30, UNKNOWN_VERSION_ADDED),
|
||||||
INVALID_ALIAS_NAME_EXCEPTION(org.elasticsearch.indices.InvalidAliasNameException.class,
|
INVALID_ALIAS_NAME_EXCEPTION(org.opensearch.indices.InvalidAliasNameException.class,
|
||||||
org.elasticsearch.indices.InvalidAliasNameException::new, 31, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.InvalidAliasNameException::new, 31, UNKNOWN_VERSION_ADDED),
|
||||||
INVALID_INDEX_NAME_EXCEPTION(org.elasticsearch.indices.InvalidIndexNameException.class,
|
INVALID_INDEX_NAME_EXCEPTION(org.opensearch.indices.InvalidIndexNameException.class,
|
||||||
org.elasticsearch.indices.InvalidIndexNameException::new, 32, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.InvalidIndexNameException::new, 32, UNKNOWN_VERSION_ADDED),
|
||||||
INDEX_PRIMARY_SHARD_NOT_ALLOCATED_EXCEPTION(org.elasticsearch.indices.IndexPrimaryShardNotAllocatedException.class,
|
INDEX_PRIMARY_SHARD_NOT_ALLOCATED_EXCEPTION(org.opensearch.indices.IndexPrimaryShardNotAllocatedException.class,
|
||||||
org.elasticsearch.indices.IndexPrimaryShardNotAllocatedException::new, 33, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.IndexPrimaryShardNotAllocatedException::new, 33, UNKNOWN_VERSION_ADDED),
|
||||||
TRANSPORT_EXCEPTION(org.elasticsearch.transport.TransportException.class,
|
TRANSPORT_EXCEPTION(org.elasticsearch.transport.TransportException.class,
|
||||||
org.elasticsearch.transport.TransportException::new, 34, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.transport.TransportException::new, 34, UNKNOWN_VERSION_ADDED),
|
||||||
ELASTICSEARCH_PARSE_EXCEPTION(org.elasticsearch.OpenSearchParseException.class,
|
ELASTICSEARCH_PARSE_EXCEPTION(org.elasticsearch.OpenSearchParseException.class,
|
||||||
|
@ -805,20 +805,20 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
||||||
org.elasticsearch.search.SearchException::new, 36, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.search.SearchException::new, 36, UNKNOWN_VERSION_ADDED),
|
||||||
MAPPER_EXCEPTION(org.elasticsearch.index.mapper.MapperException.class,
|
MAPPER_EXCEPTION(org.elasticsearch.index.mapper.MapperException.class,
|
||||||
org.elasticsearch.index.mapper.MapperException::new, 37, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.index.mapper.MapperException::new, 37, UNKNOWN_VERSION_ADDED),
|
||||||
INVALID_TYPE_NAME_EXCEPTION(org.elasticsearch.indices.InvalidTypeNameException.class,
|
INVALID_TYPE_NAME_EXCEPTION(org.opensearch.indices.InvalidTypeNameException.class,
|
||||||
org.elasticsearch.indices.InvalidTypeNameException::new, 38, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.InvalidTypeNameException::new, 38, UNKNOWN_VERSION_ADDED),
|
||||||
SNAPSHOT_RESTORE_EXCEPTION(org.opensearch.snapshots.SnapshotRestoreException.class,
|
SNAPSHOT_RESTORE_EXCEPTION(org.opensearch.snapshots.SnapshotRestoreException.class,
|
||||||
org.opensearch.snapshots.SnapshotRestoreException::new, 39, UNKNOWN_VERSION_ADDED),
|
org.opensearch.snapshots.SnapshotRestoreException::new, 39, UNKNOWN_VERSION_ADDED),
|
||||||
PARSING_EXCEPTION(org.elasticsearch.common.ParsingException.class, org.elasticsearch.common.ParsingException::new, 40,
|
PARSING_EXCEPTION(org.elasticsearch.common.ParsingException.class, org.elasticsearch.common.ParsingException::new, 40,
|
||||||
UNKNOWN_VERSION_ADDED),
|
UNKNOWN_VERSION_ADDED),
|
||||||
INDEX_SHARD_CLOSED_EXCEPTION(org.elasticsearch.index.shard.IndexShardClosedException.class,
|
INDEX_SHARD_CLOSED_EXCEPTION(org.elasticsearch.index.shard.IndexShardClosedException.class,
|
||||||
org.elasticsearch.index.shard.IndexShardClosedException::new, 41, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.index.shard.IndexShardClosedException::new, 41, UNKNOWN_VERSION_ADDED),
|
||||||
RECOVER_FILES_RECOVERY_EXCEPTION(org.elasticsearch.indices.recovery.RecoverFilesRecoveryException.class,
|
RECOVER_FILES_RECOVERY_EXCEPTION(org.opensearch.indices.recovery.RecoverFilesRecoveryException.class,
|
||||||
org.elasticsearch.indices.recovery.RecoverFilesRecoveryException::new, 42, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.recovery.RecoverFilesRecoveryException::new, 42, UNKNOWN_VERSION_ADDED),
|
||||||
TRUNCATED_TRANSLOG_EXCEPTION(org.elasticsearch.index.translog.TruncatedTranslogException.class,
|
TRUNCATED_TRANSLOG_EXCEPTION(org.elasticsearch.index.translog.TruncatedTranslogException.class,
|
||||||
org.elasticsearch.index.translog.TruncatedTranslogException::new, 43, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.index.translog.TruncatedTranslogException::new, 43, UNKNOWN_VERSION_ADDED),
|
||||||
RECOVERY_FAILED_EXCEPTION(org.elasticsearch.indices.recovery.RecoveryFailedException.class,
|
RECOVERY_FAILED_EXCEPTION(org.opensearch.indices.recovery.RecoveryFailedException.class,
|
||||||
org.elasticsearch.indices.recovery.RecoveryFailedException::new, 44, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.recovery.RecoveryFailedException::new, 44, UNKNOWN_VERSION_ADDED),
|
||||||
INDEX_SHARD_RELOCATED_EXCEPTION(org.elasticsearch.index.shard.IndexShardRelocatedException.class,
|
INDEX_SHARD_RELOCATED_EXCEPTION(org.elasticsearch.index.shard.IndexShardRelocatedException.class,
|
||||||
org.elasticsearch.index.shard.IndexShardRelocatedException::new, 45, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.index.shard.IndexShardRelocatedException::new, 45, UNKNOWN_VERSION_ADDED),
|
||||||
NODE_SHOULD_NOT_CONNECT_EXCEPTION(org.elasticsearch.transport.NodeShouldNotConnectException.class,
|
NODE_SHOULD_NOT_CONNECT_EXCEPTION(org.elasticsearch.transport.NodeShouldNotConnectException.class,
|
||||||
|
@ -840,8 +840,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
||||||
UNKNOWN_VERSION_ADDED),
|
UNKNOWN_VERSION_ADDED),
|
||||||
SETTINGS_EXCEPTION(org.elasticsearch.common.settings.SettingsException.class,
|
SETTINGS_EXCEPTION(org.elasticsearch.common.settings.SettingsException.class,
|
||||||
org.elasticsearch.common.settings.SettingsException::new, 56, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.common.settings.SettingsException::new, 56, UNKNOWN_VERSION_ADDED),
|
||||||
INDEX_TEMPLATE_MISSING_EXCEPTION(org.elasticsearch.indices.IndexTemplateMissingException.class,
|
INDEX_TEMPLATE_MISSING_EXCEPTION(org.opensearch.indices.IndexTemplateMissingException.class,
|
||||||
org.elasticsearch.indices.IndexTemplateMissingException::new, 57, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.IndexTemplateMissingException::new, 57, UNKNOWN_VERSION_ADDED),
|
||||||
SEND_REQUEST_TRANSPORT_EXCEPTION(org.elasticsearch.transport.SendRequestTransportException.class,
|
SEND_REQUEST_TRANSPORT_EXCEPTION(org.elasticsearch.transport.SendRequestTransportException.class,
|
||||||
org.elasticsearch.transport.SendRequestTransportException::new, 58, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.transport.SendRequestTransportException::new, 58, UNKNOWN_VERSION_ADDED),
|
||||||
// 59 used to be EsRejectedExecutionException
|
// 59 used to be EsRejectedExecutionException
|
||||||
|
@ -849,14 +849,14 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
||||||
// 61 used to be for RoutingValidationException
|
// 61 used to be for RoutingValidationException
|
||||||
NOT_SERIALIZABLE_EXCEPTION_WRAPPER(org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper.class,
|
NOT_SERIALIZABLE_EXCEPTION_WRAPPER(org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper.class,
|
||||||
org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper::new, 62, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper::new, 62, UNKNOWN_VERSION_ADDED),
|
||||||
ALIAS_FILTER_PARSING_EXCEPTION(org.elasticsearch.indices.AliasFilterParsingException.class,
|
ALIAS_FILTER_PARSING_EXCEPTION(org.opensearch.indices.AliasFilterParsingException.class,
|
||||||
org.elasticsearch.indices.AliasFilterParsingException::new, 63, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.AliasFilterParsingException::new, 63, UNKNOWN_VERSION_ADDED),
|
||||||
// 64 was DeleteByQueryFailedEngineException, which was removed in 5.0
|
// 64 was DeleteByQueryFailedEngineException, which was removed in 5.0
|
||||||
GATEWAY_EXCEPTION(org.elasticsearch.gateway.GatewayException.class, org.elasticsearch.gateway.GatewayException::new, 65,
|
GATEWAY_EXCEPTION(org.opensearch.gateway.GatewayException.class, org.opensearch.gateway.GatewayException::new, 65,
|
||||||
UNKNOWN_VERSION_ADDED),
|
UNKNOWN_VERSION_ADDED),
|
||||||
INDEX_SHARD_NOT_RECOVERING_EXCEPTION(org.elasticsearch.index.shard.IndexShardNotRecoveringException.class,
|
INDEX_SHARD_NOT_RECOVERING_EXCEPTION(org.elasticsearch.index.shard.IndexShardNotRecoveringException.class,
|
||||||
org.elasticsearch.index.shard.IndexShardNotRecoveringException::new, 66, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.index.shard.IndexShardNotRecoveringException::new, 66, UNKNOWN_VERSION_ADDED),
|
||||||
HTTP_EXCEPTION(org.elasticsearch.http.HttpException.class, org.elasticsearch.http.HttpException::new, 67, UNKNOWN_VERSION_ADDED),
|
HTTP_EXCEPTION(org.opensearch.http.HttpException.class, org.opensearch.http.HttpException::new, 67, UNKNOWN_VERSION_ADDED),
|
||||||
ELASTICSEARCH_EXCEPTION(OpenSearchException.class,
|
ELASTICSEARCH_EXCEPTION(OpenSearchException.class,
|
||||||
OpenSearchException::new, 68, UNKNOWN_VERSION_ADDED),
|
OpenSearchException::new, 68, UNKNOWN_VERSION_ADDED),
|
||||||
SNAPSHOT_MISSING_EXCEPTION(org.opensearch.snapshots.SnapshotMissingException.class,
|
SNAPSHOT_MISSING_EXCEPTION(org.opensearch.snapshots.SnapshotMissingException.class,
|
||||||
|
@ -894,17 +894,17 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
||||||
AGGREGATION_EXECUTION_EXCEPTION(org.elasticsearch.search.aggregations.AggregationExecutionException.class,
|
AGGREGATION_EXECUTION_EXCEPTION(org.elasticsearch.search.aggregations.AggregationExecutionException.class,
|
||||||
org.elasticsearch.search.aggregations.AggregationExecutionException::new, 86, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.search.aggregations.AggregationExecutionException::new, 86, UNKNOWN_VERSION_ADDED),
|
||||||
// 87 used to be for MergeMappingException
|
// 87 used to be for MergeMappingException
|
||||||
INVALID_INDEX_TEMPLATE_EXCEPTION(org.elasticsearch.indices.InvalidIndexTemplateException.class,
|
INVALID_INDEX_TEMPLATE_EXCEPTION(org.opensearch.indices.InvalidIndexTemplateException.class,
|
||||||
org.elasticsearch.indices.InvalidIndexTemplateException::new, 88, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.InvalidIndexTemplateException::new, 88, UNKNOWN_VERSION_ADDED),
|
||||||
REFRESH_FAILED_ENGINE_EXCEPTION(org.elasticsearch.index.engine.RefreshFailedEngineException.class,
|
REFRESH_FAILED_ENGINE_EXCEPTION(org.elasticsearch.index.engine.RefreshFailedEngineException.class,
|
||||||
org.elasticsearch.index.engine.RefreshFailedEngineException::new, 90, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.index.engine.RefreshFailedEngineException::new, 90, UNKNOWN_VERSION_ADDED),
|
||||||
AGGREGATION_INITIALIZATION_EXCEPTION(org.elasticsearch.search.aggregations.AggregationInitializationException.class,
|
AGGREGATION_INITIALIZATION_EXCEPTION(org.elasticsearch.search.aggregations.AggregationInitializationException.class,
|
||||||
org.elasticsearch.search.aggregations.AggregationInitializationException::new, 91, UNKNOWN_VERSION_ADDED),
|
org.elasticsearch.search.aggregations.AggregationInitializationException::new, 91, UNKNOWN_VERSION_ADDED),
|
||||||
DELAY_RECOVERY_EXCEPTION(org.elasticsearch.indices.recovery.DelayRecoveryException.class,
|
DELAY_RECOVERY_EXCEPTION(org.opensearch.indices.recovery.DelayRecoveryException.class,
|
||||||
org.elasticsearch.indices.recovery.DelayRecoveryException::new, 92, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.recovery.DelayRecoveryException::new, 92, UNKNOWN_VERSION_ADDED),
|
||||||
// 93 used to be for IndexWarmerMissingException
|
// 93 used to be for IndexWarmerMissingException
|
||||||
NO_NODE_AVAILABLE_EXCEPTION(org.elasticsearch.client.transport.NoNodeAvailableException.class,
|
NO_NODE_AVAILABLE_EXCEPTION(org.opensearch.client.transport.NoNodeAvailableException.class,
|
||||||
org.elasticsearch.client.transport.NoNodeAvailableException::new, 94, UNKNOWN_VERSION_ADDED),
|
org.opensearch.client.transport.NoNodeAvailableException::new, 94, UNKNOWN_VERSION_ADDED),
|
||||||
INVALID_SNAPSHOT_NAME_EXCEPTION(org.opensearch.snapshots.InvalidSnapshotNameException.class,
|
INVALID_SNAPSHOT_NAME_EXCEPTION(org.opensearch.snapshots.InvalidSnapshotNameException.class,
|
||||||
org.opensearch.snapshots.InvalidSnapshotNameException::new, 96, UNKNOWN_VERSION_ADDED),
|
org.opensearch.snapshots.InvalidSnapshotNameException::new, 96, UNKNOWN_VERSION_ADDED),
|
||||||
ILLEGAL_INDEX_SHARD_STATE_EXCEPTION(org.elasticsearch.index.shard.IllegalIndexShardStateException.class,
|
ILLEGAL_INDEX_SHARD_STATE_EXCEPTION(org.elasticsearch.index.shard.IllegalIndexShardStateException.class,
|
||||||
|
@ -981,8 +981,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
||||||
RETRY_ON_REPLICA_EXCEPTION(org.elasticsearch.action.support.replication.TransportReplicationAction.RetryOnReplicaException.class,
|
RETRY_ON_REPLICA_EXCEPTION(org.elasticsearch.action.support.replication.TransportReplicationAction.RetryOnReplicaException.class,
|
||||||
org.elasticsearch.action.support.replication.TransportReplicationAction.RetryOnReplicaException::new, 136,
|
org.elasticsearch.action.support.replication.TransportReplicationAction.RetryOnReplicaException::new, 136,
|
||||||
UNKNOWN_VERSION_ADDED),
|
UNKNOWN_VERSION_ADDED),
|
||||||
TYPE_MISSING_EXCEPTION(org.elasticsearch.indices.TypeMissingException.class,
|
TYPE_MISSING_EXCEPTION(org.opensearch.indices.TypeMissingException.class,
|
||||||
org.elasticsearch.indices.TypeMissingException::new, 137, UNKNOWN_VERSION_ADDED),
|
org.opensearch.indices.TypeMissingException::new, 137, UNKNOWN_VERSION_ADDED),
|
||||||
FAILED_TO_COMMIT_CLUSTER_STATE_EXCEPTION(org.opensearch.cluster.coordination.FailedToCommitClusterStateException.class,
|
FAILED_TO_COMMIT_CLUSTER_STATE_EXCEPTION(org.opensearch.cluster.coordination.FailedToCommitClusterStateException.class,
|
||||||
org.opensearch.cluster.coordination.FailedToCommitClusterStateException::new, 140, UNKNOWN_VERSION_ADDED),
|
org.opensearch.cluster.coordination.FailedToCommitClusterStateException::new, 140, UNKNOWN_VERSION_ADDED),
|
||||||
QUERY_SHARD_EXCEPTION(org.elasticsearch.index.query.QueryShardException.class,
|
QUERY_SHARD_EXCEPTION(org.elasticsearch.index.query.QueryShardException.class,
|
||||||
|
@ -1034,8 +1034,8 @@ public class OpenSearchException extends RuntimeException implements ToXContentF
|
||||||
157,
|
157,
|
||||||
Version.V_7_5_0),
|
Version.V_7_5_0),
|
||||||
PEER_RECOVERY_NOT_FOUND_EXCEPTION(
|
PEER_RECOVERY_NOT_FOUND_EXCEPTION(
|
||||||
org.elasticsearch.indices.recovery.PeerRecoveryNotFound.class,
|
org.opensearch.indices.recovery.PeerRecoveryNotFound.class,
|
||||||
org.elasticsearch.indices.recovery.PeerRecoveryNotFound::new,
|
org.opensearch.indices.recovery.PeerRecoveryNotFound::new,
|
||||||
158,
|
158,
|
||||||
Version.V_7_9_0),
|
Version.V_7_9_0),
|
||||||
NODE_HEALTH_CHECK_FAILURE_EXCEPTION(
|
NODE_HEALTH_CHECK_FAILURE_EXCEPTION(
|
||||||
|
|
|
@ -42,14 +42,14 @@ import static org.elasticsearch.index.seqno.SequenceNumbers.UNASSIGNED_SEQ_NO;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A request to delete a document from an index based on its type and id. Best created using
|
* A request to delete a document from an index based on its type and id. Best created using
|
||||||
* {@link org.elasticsearch.client.Requests#deleteRequest(String)}.
|
* {@link org.opensearch.client.Requests#deleteRequest(String)}.
|
||||||
* <p>
|
* <p>
|
||||||
* The operation requires the {@link #index()}, {@link #type(String)} and {@link #id(String)} to
|
* The operation requires the {@link #index()}, {@link #type(String)} and {@link #id(String)} to
|
||||||
* be set.
|
* be set.
|
||||||
*
|
*
|
||||||
* @see DeleteResponse
|
* @see DeleteResponse
|
||||||
* @see org.elasticsearch.client.Client#delete(DeleteRequest)
|
* @see org.opensearch.client.Client#delete(DeleteRequest)
|
||||||
* @see org.elasticsearch.client.Requests#deleteRequest(String)
|
* @see org.opensearch.client.Requests#deleteRequest(String)
|
||||||
*/
|
*/
|
||||||
public class DeleteRequest extends ReplicatedWriteRequest<DeleteRequest>
|
public class DeleteRequest extends ReplicatedWriteRequest<DeleteRequest>
|
||||||
implements DocWriteRequest<DeleteRequest>, CompositeIndicesRequest {
|
implements DocWriteRequest<DeleteRequest>, CompositeIndicesRequest {
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.action.delete;
|
||||||
|
|
||||||
import org.opensearch.action.support.WriteRequestBuilder;
|
import org.opensearch.action.support.WriteRequestBuilder;
|
||||||
import org.elasticsearch.action.support.replication.ReplicationRequestBuilder;
|
import org.elasticsearch.action.support.replication.ReplicationRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
import org.elasticsearch.index.VersionType;
|
import org.elasticsearch.index.VersionType;
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ import static org.elasticsearch.common.xcontent.XContentParserUtils.ensureExpect
|
||||||
* The response of the delete action.
|
* The response of the delete action.
|
||||||
*
|
*
|
||||||
* @see org.elasticsearch.action.delete.DeleteRequest
|
* @see org.elasticsearch.action.delete.DeleteRequest
|
||||||
* @see org.elasticsearch.client.Client#delete(DeleteRequest)
|
* @see org.opensearch.client.Client#delete(DeleteRequest)
|
||||||
*/
|
*/
|
||||||
public class DeleteResponse extends DocWriteResponse {
|
public class DeleteResponse extends DocWriteResponse {
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.explain;
|
package org.elasticsearch.action.explain;
|
||||||
|
|
||||||
import org.elasticsearch.action.support.single.shard.SingleShardOperationRequestBuilder;
|
import org.elasticsearch.action.support.single.shard.SingleShardOperationRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
import org.elasticsearch.common.Strings;
|
import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.index.query.QueryBuilder;
|
import org.elasticsearch.index.query.QueryBuilder;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.fieldcaps;
|
package org.elasticsearch.action.fieldcaps;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.index.query.QueryBuilder;
|
import org.elasticsearch.index.query.QueryBuilder;
|
||||||
|
|
||||||
public class FieldCapabilitiesRequestBuilder extends ActionRequestBuilder<FieldCapabilitiesRequest, FieldCapabilitiesResponse> {
|
public class FieldCapabilitiesRequestBuilder extends ActionRequestBuilder<FieldCapabilitiesRequest, FieldCapabilitiesResponse> {
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.action.ActionListener;
|
||||||
import org.opensearch.action.OriginalIndices;
|
import org.opensearch.action.OriginalIndices;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.opensearch.cluster.ClusterState;
|
import org.opensearch.cluster.ClusterState;
|
||||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
|
|
|
@ -39,14 +39,14 @@ import static org.opensearch.action.ValidateActions.addValidationError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A request to get a document (its source) from an index based on its id. Best created using
|
* A request to get a document (its source) from an index based on its id. Best created using
|
||||||
* {@link org.elasticsearch.client.Requests#getRequest(String)}.
|
* {@link org.opensearch.client.Requests#getRequest(String)}.
|
||||||
* <p>
|
* <p>
|
||||||
* The operation requires the {@link #index()}, {@link #type(String)} and {@link #id(String)}
|
* The operation requires the {@link #index()}, {@link #type(String)} and {@link #id(String)}
|
||||||
* to be set.
|
* to be set.
|
||||||
*
|
*
|
||||||
* @see org.elasticsearch.action.get.GetResponse
|
* @see org.elasticsearch.action.get.GetResponse
|
||||||
* @see org.elasticsearch.client.Requests#getRequest(String)
|
* @see org.opensearch.client.Requests#getRequest(String)
|
||||||
* @see org.elasticsearch.client.Client#get(GetRequest)
|
* @see org.opensearch.client.Client#get(GetRequest)
|
||||||
*/
|
*/
|
||||||
public class GetRequest extends SingleShardRequest<GetRequest> implements RealtimeRequest {
|
public class GetRequest extends SingleShardRequest<GetRequest> implements RealtimeRequest {
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.get;
|
package org.elasticsearch.action.get;
|
||||||
|
|
||||||
import org.elasticsearch.action.support.single.shard.SingleShardOperationRequestBuilder;
|
import org.elasticsearch.action.support.single.shard.SingleShardOperationRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
import org.elasticsearch.common.Strings;
|
import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.index.VersionType;
|
import org.elasticsearch.index.VersionType;
|
||||||
|
|
|
@ -42,7 +42,7 @@ import java.util.Objects;
|
||||||
* The response of a get action.
|
* The response of a get action.
|
||||||
*
|
*
|
||||||
* @see GetRequest
|
* @see GetRequest
|
||||||
* @see org.elasticsearch.client.Client#get(GetRequest)
|
* @see org.opensearch.client.Client#get(GetRequest)
|
||||||
*/
|
*/
|
||||||
public class GetResponse extends ActionResponse implements Iterable<DocumentField>, ToXContentObject {
|
public class GetResponse extends ActionResponse implements Iterable<DocumentField>, ToXContentObject {
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.get;
|
package org.elasticsearch.action.get;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.opensearch.action.RoutingMissingException;
|
||||||
import org.opensearch.action.support.IndicesOptions;
|
import org.opensearch.action.support.IndicesOptions;
|
||||||
import org.elasticsearch.action.support.replication.ReplicatedWriteRequest;
|
import org.elasticsearch.action.support.replication.ReplicatedWriteRequest;
|
||||||
import org.elasticsearch.action.support.replication.ReplicationRequest;
|
import org.elasticsearch.action.support.replication.ReplicationRequest;
|
||||||
import org.elasticsearch.client.Requests;
|
import org.opensearch.client.Requests;
|
||||||
import org.opensearch.cluster.metadata.MappingMetadata;
|
import org.opensearch.cluster.metadata.MappingMetadata;
|
||||||
import org.opensearch.cluster.metadata.Metadata;
|
import org.opensearch.cluster.metadata.Metadata;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
|
@ -61,7 +61,7 @@ import static org.elasticsearch.index.seqno.SequenceNumbers.UNASSIGNED_SEQ_NO;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Index request to index a typed JSON document into a specific index and make it searchable. Best
|
* Index request to index a typed JSON document into a specific index and make it searchable. Best
|
||||||
* created using {@link org.elasticsearch.client.Requests#indexRequest(String)}.
|
* created using {@link org.opensearch.client.Requests#indexRequest(String)}.
|
||||||
*
|
*
|
||||||
* The index requires the {@link #index()}, {@link #type(String)}, {@link #id(String)} and
|
* The index requires the {@link #index()}, {@link #type(String)}, {@link #id(String)} and
|
||||||
* {@link #source(byte[], XContentType)} to be set.
|
* {@link #source(byte[], XContentType)} to be set.
|
||||||
|
@ -73,8 +73,8 @@ import static org.elasticsearch.index.seqno.SequenceNumbers.UNASSIGNED_SEQ_NO;
|
||||||
* If the {@link #id(String)} is not set, it will be automatically generated.
|
* If the {@link #id(String)} is not set, it will be automatically generated.
|
||||||
*
|
*
|
||||||
* @see IndexResponse
|
* @see IndexResponse
|
||||||
* @see org.elasticsearch.client.Requests#indexRequest(String)
|
* @see org.opensearch.client.Requests#indexRequest(String)
|
||||||
* @see org.elasticsearch.client.Client#index(IndexRequest)
|
* @see org.opensearch.client.Client#index(IndexRequest)
|
||||||
*/
|
*/
|
||||||
public class IndexRequest extends ReplicatedWriteRequest<IndexRequest> implements DocWriteRequest<IndexRequest>, CompositeIndicesRequest {
|
public class IndexRequest extends ReplicatedWriteRequest<IndexRequest> implements DocWriteRequest<IndexRequest>, CompositeIndicesRequest {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.elasticsearch.action.index;
|
||||||
import org.opensearch.action.DocWriteRequest;
|
import org.opensearch.action.DocWriteRequest;
|
||||||
import org.opensearch.action.support.WriteRequestBuilder;
|
import org.opensearch.action.support.WriteRequestBuilder;
|
||||||
import org.elasticsearch.action.support.replication.ReplicationRequestBuilder;
|
import org.elasticsearch.action.support.replication.ReplicationRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
import org.elasticsearch.common.bytes.BytesReference;
|
import org.elasticsearch.common.bytes.BytesReference;
|
||||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||||
|
|
|
@ -34,7 +34,7 @@ import static org.elasticsearch.common.xcontent.XContentParserUtils.ensureExpect
|
||||||
* A response of an index operation,
|
* A response of an index operation,
|
||||||
*
|
*
|
||||||
* @see org.elasticsearch.action.index.IndexRequest
|
* @see org.elasticsearch.action.index.IndexRequest
|
||||||
* @see org.elasticsearch.client.Client#index(IndexRequest)
|
* @see org.opensearch.client.Client#index(IndexRequest)
|
||||||
*/
|
*/
|
||||||
public class IndexResponse extends DocWriteResponse {
|
public class IndexResponse extends DocWriteResponse {
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.action.ingest;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
public class DeletePipelineRequestBuilder extends ActionRequestBuilder<DeletePipelineRequest, AcknowledgedResponse> {
|
public class DeletePipelineRequestBuilder extends ActionRequestBuilder<DeletePipelineRequest, AcknowledgedResponse> {
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.ingest;
|
package org.elasticsearch.action.ingest;
|
||||||
|
|
||||||
import org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder;
|
import org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
public class GetPipelineRequestBuilder
|
public class GetPipelineRequestBuilder
|
||||||
extends MasterNodeReadOperationRequestBuilder<GetPipelineRequest, GetPipelineResponse, GetPipelineRequestBuilder> {
|
extends MasterNodeReadOperationRequestBuilder<GetPipelineRequest, GetPipelineResponse, GetPipelineRequestBuilder> {
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.action.ingest;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.bytes.BytesReference;
|
import org.elasticsearch.common.bytes.BytesReference;
|
||||||
import org.elasticsearch.common.xcontent.XContentType;
|
import org.elasticsearch.common.xcontent.XContentType;
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ import org.opensearch.action.admin.cluster.node.info.NodesInfoRequest;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
import org.elasticsearch.action.support.master.AcknowledgedResponse;
|
||||||
import org.elasticsearch.action.support.master.TransportMasterNodeAction;
|
import org.elasticsearch.action.support.master.TransportMasterNodeAction;
|
||||||
import org.elasticsearch.client.OriginSettingClient;
|
import org.opensearch.client.OriginSettingClient;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.opensearch.cluster.ClusterState;
|
import org.opensearch.cluster.ClusterState;
|
||||||
import org.opensearch.cluster.block.ClusterBlockException;
|
import org.opensearch.cluster.block.ClusterBlockException;
|
||||||
import org.opensearch.cluster.block.ClusterBlockLevel;
|
import org.opensearch.cluster.block.ClusterBlockLevel;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.ingest;
|
package org.elasticsearch.action.ingest;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.bytes.BytesReference;
|
import org.elasticsearch.common.bytes.BytesReference;
|
||||||
import org.elasticsearch.common.xcontent.XContentType;
|
import org.elasticsearch.common.xcontent.XContentType;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.main;
|
package org.elasticsearch.action.main;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
public class MainRequestBuilder extends ActionRequestBuilder<MainRequest, MainResponse> {
|
public class MainRequestBuilder extends ActionRequestBuilder<MainRequest, MainResponse> {
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.search;
|
package org.elasticsearch.action.search;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.action.search;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.opensearch.action.support.IndicesOptions;
|
import org.opensearch.action.support.IndicesOptions;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A request builder for multiple search requests.
|
* A request builder for multiple search requests.
|
||||||
|
|
|
@ -46,14 +46,14 @@ import static org.opensearch.action.ValidateActions.addValidationError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A request to execute search against one or more indices (or all). Best created using
|
* A request to execute search against one or more indices (or all). Best created using
|
||||||
* {@link org.elasticsearch.client.Requests#searchRequest(String...)}.
|
* {@link org.opensearch.client.Requests#searchRequest(String...)}.
|
||||||
* <p>
|
* <p>
|
||||||
* Note, the search {@link #source(org.elasticsearch.search.builder.SearchSourceBuilder)}
|
* Note, the search {@link #source(org.elasticsearch.search.builder.SearchSourceBuilder)}
|
||||||
* is required. The search source is the different search options, including aggregations and such.
|
* is required. The search source is the different search options, including aggregations and such.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @see org.elasticsearch.client.Requests#searchRequest(String...)
|
* @see org.opensearch.client.Requests#searchRequest(String...)
|
||||||
* @see org.elasticsearch.client.Client#search(SearchRequest)
|
* @see org.opensearch.client.Client#search(SearchRequest)
|
||||||
* @see SearchResponse
|
* @see SearchResponse
|
||||||
*/
|
*/
|
||||||
public class SearchRequest extends ActionRequest implements IndicesRequest.Replaceable {
|
public class SearchRequest extends ActionRequest implements IndicesRequest.Replaceable {
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.action.search;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.opensearch.action.support.IndicesOptions;
|
import org.opensearch.action.support.IndicesOptions;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
import org.elasticsearch.index.query.QueryBuilder;
|
import org.elasticsearch.index.query.QueryBuilder;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.search;
|
package org.elasticsearch.action.search;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
import org.elasticsearch.search.Scroll;
|
import org.elasticsearch.search.Scroll;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.elasticsearch.action.search;
|
||||||
import org.opensearch.action.ActionListener;
|
import org.opensearch.action.ActionListener;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.opensearch.cluster.ClusterState;
|
import org.opensearch.cluster.ClusterState;
|
||||||
import org.opensearch.cluster.block.ClusterBlockLevel;
|
import org.opensearch.cluster.block.ClusterBlockLevel;
|
||||||
import org.elasticsearch.cluster.service.ClusterService;
|
import org.elasticsearch.cluster.service.ClusterService;
|
||||||
|
|
|
@ -28,9 +28,9 @@ import org.opensearch.action.admin.cluster.shards.ClusterSearchShardsResponse;
|
||||||
import org.opensearch.action.support.ActionFilters;
|
import org.opensearch.action.support.ActionFilters;
|
||||||
import org.opensearch.action.support.HandledTransportAction;
|
import org.opensearch.action.support.HandledTransportAction;
|
||||||
import org.opensearch.action.support.IndicesOptions;
|
import org.opensearch.action.support.IndicesOptions;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.elasticsearch.client.OriginSettingClient;
|
import org.opensearch.client.OriginSettingClient;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.opensearch.cluster.ClusterState;
|
import org.opensearch.cluster.ClusterState;
|
||||||
import org.opensearch.cluster.block.ClusterBlockException;
|
import org.opensearch.cluster.block.ClusterBlockException;
|
||||||
import org.opensearch.cluster.block.ClusterBlockLevel;
|
import org.opensearch.cluster.block.ClusterBlockLevel;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.elasticsearch.action.support.broadcast;
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.opensearch.action.support.IndicesOptions;
|
import org.opensearch.action.support.IndicesOptions;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
public abstract class BroadcastOperationRequestBuilder<
|
public abstract class BroadcastOperationRequestBuilder<
|
||||||
Request extends BroadcastRequest<Request>,
|
Request extends BroadcastRequest<Request>,
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
package org.elasticsearch.action.support.master;
|
package org.elasticsearch.action.support.master;
|
||||||
|
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.elasticsearch.action.support.master;
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.opensearch.action.ActionResponse;
|
import org.opensearch.action.ActionResponse;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.action.support.master;
|
||||||
|
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionResponse;
|
import org.opensearch.action.ActionResponse;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base request builder for master node read operations that can be executed on the local node as well
|
* Base request builder for master node read operations that can be executed on the local node as well
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionResponse;
|
import org.opensearch.action.ActionResponse;
|
||||||
import org.opensearch.action.support.IndicesOptions;
|
import org.opensearch.action.support.IndicesOptions;
|
||||||
import org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder;
|
import org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.util.ArrayUtils;
|
import org.elasticsearch.common.util.ArrayUtils;
|
||||||
|
|
||||||
public abstract class ClusterInfoRequestBuilder<Request extends ClusterInfoRequest<Request>, Response extends ActionResponse,
|
public abstract class ClusterInfoRequestBuilder<Request extends ClusterInfoRequest<Request>, Response extends ActionResponse,
|
||||||
|
|
|
@ -21,7 +21,7 @@ package org.elasticsearch.action.support.nodes;
|
||||||
|
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
|
|
||||||
public abstract class NodesOperationRequestBuilder<Request extends BaseNodesRequest<Request>, Response extends BaseNodesResponse,
|
public abstract class NodesOperationRequestBuilder<Request extends BaseNodesRequest<Request>, Response extends BaseNodesResponse,
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.opensearch.action.ActionResponse;
|
import org.opensearch.action.ActionResponse;
|
||||||
import org.opensearch.action.support.ActiveShardCount;
|
import org.opensearch.action.support.ActiveShardCount;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
|
|
||||||
public abstract class ReplicationRequestBuilder<Request extends ReplicationRequest<Request>, Response extends ActionResponse,
|
public abstract class ReplicationRequestBuilder<Request extends ReplicationRequest<Request>, Response extends ActionResponse,
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.opensearch.action.support.ActiveShardCount;
|
||||||
import org.opensearch.action.support.ChannelActionListener;
|
import org.opensearch.action.support.ChannelActionListener;
|
||||||
import org.opensearch.action.support.TransportAction;
|
import org.opensearch.action.support.TransportAction;
|
||||||
import org.opensearch.action.support.TransportActions;
|
import org.opensearch.action.support.TransportActions;
|
||||||
import org.elasticsearch.client.transport.NoNodeAvailableException;
|
import org.opensearch.client.transport.NoNodeAvailableException;
|
||||||
import org.opensearch.cluster.ClusterState;
|
import org.opensearch.cluster.ClusterState;
|
||||||
import org.opensearch.cluster.ClusterStateObserver;
|
import org.opensearch.cluster.ClusterStateObserver;
|
||||||
import org.opensearch.cluster.action.shard.ShardStateAction;
|
import org.opensearch.cluster.action.shard.ShardStateAction;
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.elasticsearch.action.support.single.instance;
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.opensearch.action.ActionResponse;
|
import org.opensearch.action.ActionResponse;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
|
|
||||||
public abstract class InstanceShardOperationRequestBuilder<Request extends InstanceShardOperationRequest<Request>,
|
public abstract class InstanceShardOperationRequestBuilder<Request extends InstanceShardOperationRequest<Request>,
|
||||||
|
|
|
@ -22,7 +22,7 @@ package org.elasticsearch.action.support.single.shard;
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.opensearch.action.ActionResponse;
|
import org.opensearch.action.ActionResponse;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
|
|
||||||
public abstract class SingleShardOperationRequestBuilder<Request extends SingleShardRequest<Request>, Response extends ActionResponse,
|
public abstract class SingleShardOperationRequestBuilder<Request extends SingleShardRequest<Request>, Response extends ActionResponse,
|
||||||
RequestBuilder extends SingleShardOperationRequestBuilder<Request, Response, RequestBuilder>>
|
RequestBuilder extends SingleShardOperationRequestBuilder<Request, Response, RequestBuilder>>
|
||||||
|
|
|
@ -20,7 +20,7 @@ package org.elasticsearch.action.support.tasks;
|
||||||
|
|
||||||
import org.opensearch.action.ActionType;
|
import org.opensearch.action.ActionType;
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
import org.opensearch.tasks.TaskId;
|
import org.opensearch.tasks.TaskId;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.termvectors;
|
package org.elasticsearch.action.termvectors;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
|
|
||||||
public class MultiTermVectorsRequestBuilder extends ActionRequestBuilder<MultiTermVectorsRequest, MultiTermVectorsResponse> {
|
public class MultiTermVectorsRequestBuilder extends ActionRequestBuilder<MultiTermVectorsRequest, MultiTermVectorsResponse> {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
package org.elasticsearch.action.termvectors;
|
package org.elasticsearch.action.termvectors;
|
||||||
|
|
||||||
import org.opensearch.action.ActionRequestBuilder;
|
import org.opensearch.action.ActionRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||||
import org.elasticsearch.index.VersionType;
|
import org.elasticsearch.index.VersionType;
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.elasticsearch.action.support.ActionFilters;
|
||||||
import org.elasticsearch.action.support.AutoCreateIndex;
|
import org.elasticsearch.action.support.AutoCreateIndex;
|
||||||
import org.elasticsearch.action.support.TransportActions;
|
import org.elasticsearch.action.support.TransportActions;
|
||||||
import org.elasticsearch.action.support.single.instance.TransportInstanceSingleOperationAction;
|
import org.elasticsearch.action.support.single.instance.TransportInstanceSingleOperationAction;
|
||||||
import org.elasticsearch.client.node.NodeClient;
|
import org.opensearch.client.node.NodeClient;
|
||||||
import org.opensearch.cluster.ClusterState;
|
import org.opensearch.cluster.ClusterState;
|
||||||
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
|
||||||
import org.opensearch.cluster.metadata.Metadata;
|
import org.opensearch.cluster.metadata.Metadata;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import org.elasticsearch.OpenSearchException;
|
||||||
import org.opensearch.action.DocWriteResponse;
|
import org.opensearch.action.DocWriteResponse;
|
||||||
import org.elasticsearch.action.delete.DeleteRequest;
|
import org.elasticsearch.action.delete.DeleteRequest;
|
||||||
import org.elasticsearch.action.index.IndexRequest;
|
import org.elasticsearch.action.index.IndexRequest;
|
||||||
import org.elasticsearch.client.Requests;
|
import org.opensearch.client.Requests;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
import org.elasticsearch.common.bytes.BytesReference;
|
import org.elasticsearch.common.bytes.BytesReference;
|
||||||
import org.elasticsearch.common.collect.Tuple;
|
import org.elasticsearch.common.collect.Tuple;
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.elasticsearch.action.support.ActiveShardCount;
|
||||||
import org.elasticsearch.action.support.WriteRequestBuilder;
|
import org.elasticsearch.action.support.WriteRequestBuilder;
|
||||||
import org.elasticsearch.action.support.replication.ReplicationRequest;
|
import org.elasticsearch.action.support.replication.ReplicationRequest;
|
||||||
import org.elasticsearch.action.support.single.instance.InstanceShardOperationRequestBuilder;
|
import org.elasticsearch.action.support.single.instance.InstanceShardOperationRequestBuilder;
|
||||||
import org.elasticsearch.client.OpenSearchClient;
|
import org.opensearch.client.OpenSearchClient;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||||
import org.elasticsearch.common.xcontent.XContentType;
|
import org.elasticsearch.common.xcontent.XContentType;
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.apache.lucene.util.Constants;
|
||||||
import org.apache.lucene.util.StringHelper;
|
import org.apache.lucene.util.StringHelper;
|
||||||
import org.elasticsearch.OpenSearchException;
|
import org.elasticsearch.OpenSearchException;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.cli.KeyStoreAwareCommand;
|
import org.opensearch.cli.KeyStoreAwareCommand;
|
||||||
import org.opensearch.cli.Terminal;
|
import org.opensearch.cli.Terminal;
|
||||||
import org.opensearch.cli.UserException;
|
import org.opensearch.cli.UserException;
|
||||||
import org.elasticsearch.common.PidFile;
|
import org.elasticsearch.common.PidFile;
|
||||||
|
|
|
@ -24,7 +24,7 @@ import joptsimple.OptionSpec;
|
||||||
import joptsimple.OptionSpecBuilder;
|
import joptsimple.OptionSpecBuilder;
|
||||||
import joptsimple.util.PathConverter;
|
import joptsimple.util.PathConverter;
|
||||||
import org.elasticsearch.Build;
|
import org.elasticsearch.Build;
|
||||||
import org.elasticsearch.cli.EnvironmentAwareCommand;
|
import org.opensearch.cli.EnvironmentAwareCommand;
|
||||||
import org.opensearch.cli.ExitCodes;
|
import org.opensearch.cli.ExitCodes;
|
||||||
import org.opensearch.cli.Terminal;
|
import org.opensearch.cli.Terminal;
|
||||||
import org.opensearch.cli.UserException;
|
import org.opensearch.cli.UserException;
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.logging.log4j.message.ParameterizedMessage;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.opensearch.action.ActionListener;
|
import org.opensearch.action.ActionListener;
|
||||||
import org.opensearch.action.support.GroupedActionListener;
|
import org.opensearch.action.support.GroupedActionListener;
|
||||||
import org.elasticsearch.client.Client;
|
import org.opensearch.client.Client;
|
||||||
import org.opensearch.cluster.ClusterInfo;
|
import org.opensearch.cluster.ClusterInfo;
|
||||||
import org.opensearch.cluster.ClusterState;
|
import org.opensearch.cluster.ClusterState;
|
||||||
import org.opensearch.cluster.DiskUsage;
|
import org.opensearch.cluster.DiskUsage;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue