Closed
Description
Description
With the launch of the new Java client the Elasticsearch High Level Rest Client (HLRC) is deprecated, no longer shipped as an artifact, and can be removed from the ES codebase. This meta issue is to track the the removal of the HLRC for 8.x.
Steps (subject to change):
- Remove all HLRC tests Remove all HLRC tests #83425
- Remove all usages of HLRC sub-clients by tests, replacing them with the low-level
RestClient
. These classes can be found inside ofRestHighLevelClient.java
- Remove usages of
IndicesClient
(indices()
) (@martijnvg, Remove HLRC IndicesClient and related classes. #85492) - Remove usages of
ClusterClient
(cluster()
) (@gmarouli, Remove Cluster & XPack clients from HLRC (#83423) #83593) - Remove usages of
IngestClient
(ingest()
) (@martijnvg, Remove HLRC IngestClient class. #85483) - Remove usages of
SnapshotClient
(snapshot()
) (@dakrone, Remove SnapshotClient from HLRC #85845) - Remove usages of
TasksClient
(tasks()
) (@danhermann, Remove tasks client from HLRC #83649) - Remove usages of
XPackClient
(xpack()
) (@gmarouli, Remove Cluster & XPack clients from HLRC (#83423) #83593) - Remove usages of
GraphClient
(graph()
) (@danhermann, Remove graph client from deprecated HLRC #83471) - Remove usages of
IndexLifecycleClient
(indexLifecycle()
) (@dakrone, Remove IndexLifecycleClient from High Level Rest Client #83476) - Remove usages of
SearchableSnapshotsClient
(searchableSnapshots()
) (@dakrone, Remove HLRC's SearchableSnapshotsClient #85472) - Remove usages of
FeaturesClient
(features()
) (@danhermann, Remove features client from HLRC #83651) - Remove usages of
MigrationClient
(migration()
) (@joegallo, Remove MigrationClient from High Level Rest Client #83609) - Remove usages of
MachineLearningClient
(machineLearning()
) ([ML] Remove uses of ML HLRC classes #83885, [ML] Delete ML HLRC client and request/response classes #83912) - Remove usages of
SecurityClient
(security()
)- Remove unused methods (@tvernum, Remove unused security methods/classes from HLRC #83571)
- Remove "user" methods (@tvernum Remove enable/disableUser methods from HLRC #83626, Remove all "user" related methods from HLRC #84011)
- Remove role & role mapping methods (@tvernum Remove role related methods from HLRC #84206)
- Remove token & api key methods
- Remove remaining methods (@tvernum [HLRC] Remove SecurityClient #85983)
- Remove usages of
TransformClient
(transform()
) ([Transform] Remove HLRC Transform client #83921) - Remove usages of
EqlClient
(eql()
) (@joegallo, Remove EqlClient from HLRC #85730) - Remove unused clients (@danhermann, Remove unused clients from HLRC #83472)
- Remove usages of
CcrClient
(ccr()
) - Remove usages of
WatcherClient
(watcher()
) - Remove usages of
EnrichClient
(enrich()
) - Remove usages of
LicenseClient
(license()
) - Remove usages of
TextStructureClient
(textStructure()
) - Remove usages of
AsyncSearchClient
(asyncSearch()
) - Remove usages of
RollupClient
(rollup()
)
- Remove usages of
- Remove usages of
- Remove remaining usages of
RestHighLevelClient
-
RestHighLevelClient(RestClientBuilder restClientBuilder) (constructor)
-
getLowLevelClient()
-
close()
-
bulk(BulkRequest bulkRequest, RequestOptions options)
-
bulkAsync(BulkRequest bulkRequest, RequestOptions options, ActionListener<BulkResponse> listener)
-
reindex(ReindexRequest reindexRequest, RequestOptions options)
-
updateByQuery(UpdateByQueryRequest updateByQueryRequest, RequestOptions options)
-
deleteByQuery(DeleteByQueryRequest deleteByQueryRequest, RequestOptions options)
-
info(RequestOptions options)
-
get(GetRequest getRequest, RequestOptions options)
-
multiGet(MultiGetRequest multiGetRequest, RequestOptions options)
-
mget(MultiGetRequest multiGetRequest, RequestOptions options)
-
multiGetAsync(
-
mgetAsync(MultiGetRequest multiGetRequest, RequestOptions options, ActionListener<MultiGetResponse> listener)
-
exists(GetRequest getRequest, RequestOptions options)
-
existsSource(GetRequest getRequest, RequestOptions options)
-
existsSourceAsync(GetRequest getRequest, RequestOptions options, ActionListener<Boolean> listener)
-
getSource(GetSourceRequest getSourceRequest, RequestOptions options)
-
index(IndexRequest indexRequest, RequestOptions options)
-
count(CountRequest countRequest, RequestOptions options)
-
update(UpdateRequest updateRequest, RequestOptions options)
-
delete(DeleteRequest deleteRequest, RequestOptions options)
-
search(SearchRequest searchRequest, RequestOptions options)
-
searchAsync(SearchRequest searchRequest, RequestOptions options, ActionListener<SearchResponse> listener)
-
multiSearch(MultiSearchRequest multiSearchRequest, RequestOptions options)
-
msearch(MultiSearchRequest multiSearchRequest, RequestOptions options)
-
multiSearchAsync(
-
msearchAsync(
-
searchScroll(SearchScrollRequest searchScrollRequest, RequestOptions options)
-
scroll(SearchScrollRequest searchScrollRequest, RequestOptions options)
-
searchScrollAsync(
-
scrollAsync(
-
explain(ExplainRequest explainRequest, RequestOptions options)
-
termvectors(TermVectorsRequest request, RequestOptions options)
-
fieldCaps(FieldCapabilitiesRequest fieldCapabilitiesRequest, RequestOptions options)
-
-
As each sub client is removed its creator inside of RestHighLevelClient
to indicate that portion of the removal is "done".