Package org.elasticsearch.client
Class EnrichClient
java.lang.Object
org.elasticsearch.client.EnrichClient
Deprecated.
The High Level Rest Client is deprecated in favor of the
Elasticsearch Java API Client
A wrapper for the
RestHighLevelClient
that provides methods for
accessing the Elastic enrich related methods
See the X-Pack Enrich Policy APIs on elastic.co for more information.
-
Method Summary
Modifier and TypeMethodDescriptiondeletePolicy
(DeletePolicyRequest request, RequestOptions options) Deprecated.Executes the delete policy api, which deletes an enrich policy.deletePolicyAsync
(DeletePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously executes the delete policy api, which deletes an enrich policy.executePolicy
(ExecutePolicyRequest request, RequestOptions options) Deprecated.Executes the execute policy api, which executes an enrich policy.executePolicyAsync
(ExecutePolicyRequest request, RequestOptions options, ActionListener<ExecutePolicyResponse> listener) Deprecated.Asynchronously executes the execute policy api, which executes an enrich policy.getPolicy
(GetPolicyRequest request, RequestOptions options) Deprecated.Executes the get policy api, which retrieves an enrich policy.getPolicyAsync
(GetPolicyRequest request, RequestOptions options, ActionListener<GetPolicyResponse> listener) Deprecated.Asynchronously executes the get policy api, which retrieves an enrich policy.putPolicy
(PutPolicyRequest request, RequestOptions options) Deprecated.Executes the put policy api, which stores an enrich policy.putPolicyAsync
(PutPolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously executes the put policy api, which stores an enrich policy.stats
(StatsRequest request, RequestOptions options) Deprecated.Executes the enrich stats api, which retrieves enrich related stats.statsAsync
(StatsRequest request, RequestOptions options, ActionListener<StatsResponse> listener) Deprecated.Asynchronously executes the enrich stats api, which retrieves enrich related stats.
-
Method Details
-
putPolicy
public AcknowledgedResponse putPolicy(PutPolicyRequest request, RequestOptions options) throws IOException Deprecated.Executes the put policy api, which stores an enrich policy. See the docs for more.- Parameters:
request
- thePutPolicyRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
putPolicyAsync
public Cancellable putPolicyAsync(PutPolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously executes the put policy api, which stores an enrich policy. See the docs for more.- Parameters:
request
- thePutPolicyRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deletePolicy
public AcknowledgedResponse deletePolicy(DeletePolicyRequest request, RequestOptions options) throws IOException Deprecated.Executes the delete policy api, which deletes an enrich policy. See the docs for more.- Parameters:
request
- theDeletePolicyRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deletePolicyAsync
public Cancellable deletePolicyAsync(DeletePolicyRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener) Deprecated.Asynchronously executes the delete policy api, which deletes an enrich policy. See the docs for more.- Parameters:
request
- theDeletePolicyRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getPolicy
public GetPolicyResponse getPolicy(GetPolicyRequest request, RequestOptions options) throws IOException Deprecated.Executes the get policy api, which retrieves an enrich policy. See the docs for more.- Parameters:
request
- thePutPolicyRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getPolicyAsync
public Cancellable getPolicyAsync(GetPolicyRequest request, RequestOptions options, ActionListener<GetPolicyResponse> listener) Deprecated.Asynchronously executes the get policy api, which retrieves an enrich policy. See the docs for more.- Parameters:
request
- thePutPolicyRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
stats
Deprecated.Executes the enrich stats api, which retrieves enrich related stats. See the docs for more.- Parameters:
request
- theStatsRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
statsAsync
public Cancellable statsAsync(StatsRequest request, RequestOptions options, ActionListener<StatsResponse> listener) Deprecated.Asynchronously executes the enrich stats api, which retrieves enrich related stats. See the docs for more.- Parameters:
request
- theStatsRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
executePolicy
public ExecutePolicyResponse executePolicy(ExecutePolicyRequest request, RequestOptions options) throws IOException Deprecated.Executes the execute policy api, which executes an enrich policy. See the docs for more.- Parameters:
request
- theExecutePolicyRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
executePolicyAsync
public Cancellable executePolicyAsync(ExecutePolicyRequest request, RequestOptions options, ActionListener<ExecutePolicyResponse> listener) Deprecated.Asynchronously executes the execute policy api, which executes an enrich policy. See the docs for more.- Parameters:
request
- theExecutePolicyRequest
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-