|
@@ -19,7 +19,6 @@
|
|
|
|
|
|
package org.elasticsearch.client;
|
|
|
|
|
|
-import org.apache.http.Header;
|
|
|
import org.elasticsearch.action.ActionListener;
|
|
|
import org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequest;
|
|
|
import org.elasticsearch.action.admin.indices.alias.IndicesAliasesResponse;
|
|
@@ -92,19 +91,6 @@ public final class IndicesClient {
|
|
|
DeleteIndexResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Deletes an index using the Delete Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html">
|
|
|
- * Delete Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #delete(DeleteIndexRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public DeleteIndexResponse delete(DeleteIndexRequest deleteIndexRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(deleteIndexRequest, RequestConverters::deleteIndex,
|
|
|
- DeleteIndexResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously deletes an index using the Delete Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html">
|
|
@@ -118,19 +104,6 @@ public final class IndicesClient {
|
|
|
DeleteIndexResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously deletes an index using the Delete Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html">
|
|
|
- * Delete Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #deleteAsync(DeleteIndexRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void deleteAsync(DeleteIndexRequest deleteIndexRequest, ActionListener<DeleteIndexResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(deleteIndexRequest, RequestConverters::deleteIndex,
|
|
|
- DeleteIndexResponse::fromXContent, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Creates an index using the Create Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html">
|
|
@@ -145,19 +118,6 @@ public final class IndicesClient {
|
|
|
CreateIndexResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Creates an index using the Create Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html">
|
|
|
- * Create Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #create(CreateIndexRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public CreateIndexResponse create(CreateIndexRequest createIndexRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(createIndexRequest, RequestConverters::createIndex,
|
|
|
- CreateIndexResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously creates an index using the Create Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html">
|
|
@@ -171,19 +131,6 @@ public final class IndicesClient {
|
|
|
CreateIndexResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously creates an index using the Create Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html">
|
|
|
- * Create Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #createAsync(CreateIndexRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void createAsync(CreateIndexRequest createIndexRequest, ActionListener<CreateIndexResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(createIndexRequest, RequestConverters::createIndex,
|
|
|
- CreateIndexResponse::fromXContent, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Updates the mappings on an index using the Put Mapping API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html">
|
|
@@ -198,19 +145,6 @@ public final class IndicesClient {
|
|
|
PutMappingResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Updates the mappings on an index using the Put Mapping API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html">
|
|
|
- * Put Mapping API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #putMapping(PutMappingRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public PutMappingResponse putMapping(PutMappingRequest putMappingRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(putMappingRequest, RequestConverters::putMapping,
|
|
|
- PutMappingResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously updates the mappings on an index using the Put Mapping API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html">
|
|
@@ -224,20 +158,6 @@ public final class IndicesClient {
|
|
|
PutMappingResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously updates the mappings on an index using the Put Mapping API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html">
|
|
|
- * Put Mapping API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #putMappingAsync(PutMappingRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void putMappingAsync(PutMappingRequest putMappingRequest, ActionListener<PutMappingResponse> listener,
|
|
|
- Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(putMappingRequest, RequestConverters::putMapping,
|
|
|
- PutMappingResponse::fromXContent, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Retrieves the mappings on an index or indices using the Get Mapping API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html">
|
|
@@ -280,20 +200,6 @@ public final class IndicesClient {
|
|
|
IndicesAliasesResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Updates aliases using the Index Aliases API.
|
|
|
- * <p>
|
|
|
- * See <a href=
|
|
|
- * "https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html">
|
|
|
- * Index Aliases API on elastic.co</a>
|
|
|
- * @deprecated {@link #updateAliases(IndicesAliasesRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public IndicesAliasesResponse updateAliases(IndicesAliasesRequest indicesAliasesRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(indicesAliasesRequest, RequestConverters::updateAliases,
|
|
|
- IndicesAliasesResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously updates aliases using the Index Aliases API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html">
|
|
@@ -308,21 +214,6 @@ public final class IndicesClient {
|
|
|
IndicesAliasesResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously updates aliases using the Index Aliases API.
|
|
|
- * <p>
|
|
|
- * See <a href=
|
|
|
- * "https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html">
|
|
|
- * Index Aliases API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #updateAliasesAsync(IndicesAliasesRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, ActionListener<IndicesAliasesResponse> listener,
|
|
|
- Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(indicesAliasesRequest, RequestConverters::updateAliases,
|
|
|
- IndicesAliasesResponse::fromXContent, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Opens an index using the Open Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html">
|
|
@@ -337,19 +228,6 @@ public final class IndicesClient {
|
|
|
OpenIndexResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Opens an index using the Open Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html">
|
|
|
- * Open Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #open(OpenIndexRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public OpenIndexResponse open(OpenIndexRequest openIndexRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(openIndexRequest, RequestConverters::openIndex,
|
|
|
- OpenIndexResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously opens an index using the Open Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html">
|
|
@@ -363,19 +241,6 @@ public final class IndicesClient {
|
|
|
OpenIndexResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously opens an index using the Open Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html">
|
|
|
- * Open Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #openAsync(OpenIndexRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void openAsync(OpenIndexRequest openIndexRequest, ActionListener<OpenIndexResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(openIndexRequest, RequestConverters::openIndex,
|
|
|
- OpenIndexResponse::fromXContent, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Closes an index using the Close Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html">
|
|
@@ -390,19 +255,6 @@ public final class IndicesClient {
|
|
|
CloseIndexResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Closes an index using the Close Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html">
|
|
|
- * Close Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #close(CloseIndexRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public CloseIndexResponse close(CloseIndexRequest closeIndexRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(closeIndexRequest, RequestConverters::closeIndex,
|
|
|
- CloseIndexResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously closes an index using the Close Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html">
|
|
@@ -417,19 +269,6 @@ public final class IndicesClient {
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously closes an index using the Close Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html">
|
|
|
- * Close Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #closeAsync(CloseIndexRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void closeAsync(CloseIndexRequest closeIndexRequest, ActionListener<CloseIndexResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(closeIndexRequest, RequestConverters::closeIndex,
|
|
|
- CloseIndexResponse::fromXContent, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Checks if one or more aliases exist using the Aliases Exist API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html">
|
|
@@ -444,19 +283,6 @@ public final class IndicesClient {
|
|
|
RestHighLevelClient::convertExistsResponse, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Checks if one or more aliases exist using the Aliases Exist API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html">
|
|
|
- * Indices Aliases API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #existsAlias(GetAliasesRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public boolean existsAlias(GetAliasesRequest getAliasesRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequest(getAliasesRequest, RequestConverters::existsAlias,
|
|
|
- RestHighLevelClient::convertExistsResponse, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously checks if one or more aliases exist using the Aliases Exist API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html">
|
|
@@ -470,19 +296,6 @@ public final class IndicesClient {
|
|
|
RestHighLevelClient::convertExistsResponse, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously checks if one or more aliases exist using the Aliases Exist API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html">
|
|
|
- * Indices Aliases API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #existsAliasAsync(GetAliasesRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void existsAliasAsync(GetAliasesRequest getAliasesRequest, ActionListener<Boolean> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsync(getAliasesRequest, RequestConverters::existsAlias,
|
|
|
- RestHighLevelClient::convertExistsResponse, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Refresh one or more indices using the Refresh API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html"> Refresh API on elastic.co</a>
|
|
@@ -496,18 +309,6 @@ public final class IndicesClient {
|
|
|
RefreshResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Refresh one or more indices using the Refresh API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html"> Refresh API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #refresh(RefreshRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public RefreshResponse refresh(RefreshRequest refreshRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(refreshRequest, RequestConverters::refresh, RefreshResponse::fromXContent,
|
|
|
- emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously refresh one or more indices using the Refresh API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html"> Refresh API on elastic.co</a>
|
|
@@ -520,18 +321,6 @@ public final class IndicesClient {
|
|
|
RefreshResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously refresh one or more indices using the Refresh API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html"> Refresh API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #refreshAsync(RefreshRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void refreshAsync(RefreshRequest refreshRequest, ActionListener<RefreshResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(refreshRequest, RequestConverters::refresh, RefreshResponse::fromXContent,
|
|
|
- listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Flush one or more indices using the Flush API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html"> Flush API on elastic.co</a>
|
|
@@ -545,18 +334,6 @@ public final class IndicesClient {
|
|
|
FlushResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Flush one or more indices using the Flush API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html"> Flush API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #flush(FlushRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public FlushResponse flush(FlushRequest flushRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(flushRequest, RequestConverters::flush, FlushResponse::fromXContent,
|
|
|
- emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously flush one or more indices using the Flush API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html"> Flush API on elastic.co</a>
|
|
@@ -569,18 +346,6 @@ public final class IndicesClient {
|
|
|
FlushResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously flush one or more indices using the Flush API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html"> Flush API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #flushAsync(FlushRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void flushAsync(FlushRequest flushRequest, ActionListener<FlushResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(flushRequest, RequestConverters::flush, FlushResponse::fromXContent,
|
|
|
- listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Initiate a synced flush manually using the synced flush API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-synced-flush.html">
|
|
@@ -651,19 +416,6 @@ public final class IndicesClient {
|
|
|
ForceMergeResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Force merge one or more indices using the Force Merge API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html">
|
|
|
- * Force Merge API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #forceMerge(ForceMergeRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public ForceMergeResponse forceMerge(ForceMergeRequest forceMergeRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(forceMergeRequest, RequestConverters::forceMerge,
|
|
|
- ForceMergeResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously force merge one or more indices using the Force Merge API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html">
|
|
@@ -677,19 +429,6 @@ public final class IndicesClient {
|
|
|
ForceMergeResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously force merge one or more indices using the Force Merge API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html">
|
|
|
- * Force Merge API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #forceMergeAsync(ForceMergeRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void forceMergeAsync(ForceMergeRequest forceMergeRequest, ActionListener<ForceMergeResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(forceMergeRequest, RequestConverters::forceMerge,
|
|
|
- ForceMergeResponse::fromXContent, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Clears the cache of one or more indices using the Clear Cache API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html">
|
|
@@ -705,19 +444,6 @@ public final class IndicesClient {
|
|
|
ClearIndicesCacheResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Clears the cache of one or more indices using the Clear Cache API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html">
|
|
|
- * Clear Cache API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #clearCache(ClearIndicesCacheRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public ClearIndicesCacheResponse clearCache(ClearIndicesCacheRequest clearIndicesCacheRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(clearIndicesCacheRequest, RequestConverters::clearCache,
|
|
|
- ClearIndicesCacheResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously clears the cache of one or more indices using the Clear Cache API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html">
|
|
@@ -732,20 +458,6 @@ public final class IndicesClient {
|
|
|
ClearIndicesCacheResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously clears the cache of one or more indices using the Clear Cache API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html">
|
|
|
- * Clear Cache API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #clearCacheAsync(ClearIndicesCacheRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void clearCacheAsync(ClearIndicesCacheRequest clearIndicesCacheRequest, ActionListener<ClearIndicesCacheResponse> listener,
|
|
|
- Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(clearIndicesCacheRequest, RequestConverters::clearCache,
|
|
|
- ClearIndicesCacheResponse::fromXContent, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Checks if the index (indices) exists or not.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html">
|
|
@@ -765,24 +477,6 @@ public final class IndicesClient {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Checks if the index (indices) exists or not.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html">
|
|
|
- * Indices Exists API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #exists(GetIndexRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public boolean exists(GetIndexRequest request, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequest(
|
|
|
- request,
|
|
|
- RequestConverters::indicesExist,
|
|
|
- RestHighLevelClient::convertExistsResponse,
|
|
|
- Collections.emptySet(),
|
|
|
- headers
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously checks if the index (indices) exists or not.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html">
|
|
@@ -802,25 +496,6 @@ public final class IndicesClient {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously checks if the index (indices) exists or not.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html">
|
|
|
- * Indices Exists API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #existsAsync(GetIndexRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void existsAsync(GetIndexRequest request, ActionListener<Boolean> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsync(
|
|
|
- request,
|
|
|
- RequestConverters::indicesExist,
|
|
|
- RestHighLevelClient::convertExistsResponse,
|
|
|
- listener,
|
|
|
- Collections.emptySet(),
|
|
|
- headers
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Shrinks an index using the Shrink Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html">
|
|
@@ -835,19 +510,6 @@ public final class IndicesClient {
|
|
|
ResizeResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Shrinks an index using the Shrink Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html">
|
|
|
- * Shrink Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #shrink(ResizeRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public ResizeResponse shrink(ResizeRequest resizeRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(resizeRequest, RequestConverters::shrink, ResizeResponse::fromXContent,
|
|
|
- emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously shrinks an index using the Shrink index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html">
|
|
@@ -861,19 +523,6 @@ public final class IndicesClient {
|
|
|
ResizeResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously shrinks an index using the Shrink index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html">
|
|
|
- * Shrink Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #shrinkAsync(ResizeRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void shrinkAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(resizeRequest, RequestConverters::shrink, ResizeResponse::fromXContent,
|
|
|
- listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Splits an index using the Split Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html">
|
|
@@ -888,19 +537,6 @@ public final class IndicesClient {
|
|
|
ResizeResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Splits an index using the Split Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html">
|
|
|
- * Split Index API on elastic.co</a>
|
|
|
- * @deprecated {@link #split(ResizeRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public ResizeResponse split(ResizeRequest resizeRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(resizeRequest, RequestConverters::split, ResizeResponse::fromXContent,
|
|
|
- emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously splits an index using the Split Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html">
|
|
@@ -914,19 +550,6 @@ public final class IndicesClient {
|
|
|
ResizeResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously splits an index using the Split Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html">
|
|
|
- * Split Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #splitAsync(ResizeRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void splitAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(resizeRequest, RequestConverters::split, ResizeResponse::fromXContent,
|
|
|
- listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Rolls over an index using the Rollover Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html">
|
|
@@ -941,19 +564,6 @@ public final class IndicesClient {
|
|
|
RolloverResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Rolls over an index using the Rollover Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html">
|
|
|
- * Rollover Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #rollover(RolloverRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public RolloverResponse rollover(RolloverRequest rolloverRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(rolloverRequest, RequestConverters::rollover,
|
|
|
- RolloverResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously rolls over an index using the Rollover Index API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html">
|
|
@@ -967,19 +577,6 @@ public final class IndicesClient {
|
|
|
RolloverResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously rolls over an index using the Rollover Index API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html">
|
|
|
- * Rollover Index API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #rolloverAsync(RolloverRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void rolloverAsync(RolloverRequest rolloverRequest, ActionListener<RolloverResponse> listener, Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(rolloverRequest, RequestConverters::rollover, RolloverResponse::fromXContent,
|
|
|
- listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Gets one or more aliases using the Get Index Aliases API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html"> Indices Aliases API on
|
|
@@ -1021,19 +618,6 @@ public final class IndicesClient {
|
|
|
UpdateSettingsResponse::fromXContent, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Updates specific index level settings using the Update Indices Settings API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html"> Update Indices Settings
|
|
|
- * API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #putSettings(UpdateSettingsRequest, RequestOptions)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public UpdateSettingsResponse putSettings(UpdateSettingsRequest updateSettingsRequest, Header... headers) throws IOException {
|
|
|
- return restHighLevelClient.performRequestAndParseEntity(updateSettingsRequest, RequestConverters::indexPutSettings,
|
|
|
- UpdateSettingsResponse::fromXContent, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Asynchronously updates specific index level settings using the Update Indices Settings API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html"> Update Indices Settings
|
|
@@ -1048,20 +632,6 @@ public final class IndicesClient {
|
|
|
UpdateSettingsResponse::fromXContent, listener, emptySet());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Asynchronously updates specific index level settings using the Update Indices Settings API.
|
|
|
- * <p>
|
|
|
- * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html"> Update Indices Settings
|
|
|
- * API on elastic.co</a>
|
|
|
- * @deprecated Prefer {@link #putSettingsAsync(UpdateSettingsRequest, RequestOptions, ActionListener)}
|
|
|
- */
|
|
|
- @Deprecated
|
|
|
- public void putSettingsAsync(UpdateSettingsRequest updateSettingsRequest, ActionListener<UpdateSettingsResponse> listener,
|
|
|
- Header... headers) {
|
|
|
- restHighLevelClient.performRequestAsyncAndParseEntity(updateSettingsRequest, RequestConverters::indexPutSettings,
|
|
|
- UpdateSettingsResponse::fromXContent, listener, emptySet(), headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Puts an index template using the Index Templates API.
|
|
|
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html"> Index Templates API
|