Package org.elasticsearch.client
Class IngestClient
java.lang.Object
org.elasticsearch.client.IngestClient
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 Ingest API.
-
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.action.support.master.AcknowledgedResponse
deletePipeline
(org.elasticsearch.action.ingest.DeletePipelineRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Delete an existing pipeline.org.elasticsearch.client.Cancellable
deletePipelineAsync
(org.elasticsearch.action.ingest.DeletePipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener) Deprecated.Asynchronously delete an existing pipeline.geoIpStats
(MainRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.org.elasticsearch.client.Cancellable
geoIpStatsAsync
(MainRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GeoIpStatsResponse> listener) Deprecated.org.elasticsearch.action.ingest.GetPipelineResponse
getPipeline
(org.elasticsearch.action.ingest.GetPipelineRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Get an existing pipeline.org.elasticsearch.client.Cancellable
getPipelineAsync
(org.elasticsearch.action.ingest.GetPipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.ingest.GetPipelineResponse> listener) Deprecated.Asynchronously get an existing pipeline.org.elasticsearch.action.support.master.AcknowledgedResponse
putPipeline
(org.elasticsearch.action.ingest.PutPipelineRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Add a pipeline or update an existing pipeline.org.elasticsearch.client.Cancellable
putPipelineAsync
(org.elasticsearch.action.ingest.PutPipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener) Deprecated.Asynchronously add a pipeline or update an existing pipeline.org.elasticsearch.action.ingest.SimulatePipelineResponse
simulate
(org.elasticsearch.action.ingest.SimulatePipelineRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Simulate a pipeline on a set of documents provided in the requestorg.elasticsearch.client.Cancellable
simulateAsync
(org.elasticsearch.action.ingest.SimulatePipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.ingest.SimulatePipelineResponse> listener) Deprecated.Asynchronously simulate a pipeline on a set of documents provided in the request
-
Method Details
-
putPipeline
public org.elasticsearch.action.support.master.AcknowledgedResponse putPipeline(org.elasticsearch.action.ingest.PutPipelineRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Add a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co- Parameters:
request
- the requestoptions
- 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
-
putPipelineAsync
public org.elasticsearch.client.Cancellable putPipelineAsync(org.elasticsearch.action.ingest.PutPipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener) Deprecated.Asynchronously add a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co- Parameters:
request
- the requestoptions
- 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
-
getPipeline
public org.elasticsearch.action.ingest.GetPipelineResponse getPipeline(org.elasticsearch.action.ingest.GetPipelineRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Get an existing pipeline. See Get Pipeline API on elastic.co- Parameters:
request
- the requestoptions
- 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
-
getPipelineAsync
public org.elasticsearch.client.Cancellable getPipelineAsync(org.elasticsearch.action.ingest.GetPipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.ingest.GetPipelineResponse> listener) Deprecated.Asynchronously get an existing pipeline. See Get Pipeline API on elastic.co- Parameters:
request
- the requestoptions
- 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
-
deletePipeline
public org.elasticsearch.action.support.master.AcknowledgedResponse deletePipeline(org.elasticsearch.action.ingest.DeletePipelineRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Delete an existing pipeline. See Delete Pipeline API on elastic.co- Parameters:
request
- the requestoptions
- 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
-
deletePipelineAsync
public org.elasticsearch.client.Cancellable deletePipelineAsync(org.elasticsearch.action.ingest.DeletePipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener) Deprecated.Asynchronously delete an existing pipeline. See Delete Pipeline API on elastic.co- Parameters:
request
- the requestoptions
- 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
-
simulate
public org.elasticsearch.action.ingest.SimulatePipelineResponse simulate(org.elasticsearch.action.ingest.SimulatePipelineRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Simulate a pipeline on a set of documents provided in the request- Parameters:
request
- the requestoptions
- 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
-
simulateAsync
public org.elasticsearch.client.Cancellable simulateAsync(org.elasticsearch.action.ingest.SimulatePipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.ingest.SimulatePipelineResponse> listener) Deprecated.Asynchronously simulate a pipeline on a set of documents provided in the request- Parameters:
request
- the requestoptions
- 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
-
geoIpStats
public GeoIpStatsResponse geoIpStats(MainRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.- Throws:
IOException
-
geoIpStatsAsync
public org.elasticsearch.client.Cancellable geoIpStatsAsync(MainRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GeoIpStatsResponse> listener) Deprecated.
-