Package org.elasticsearch.client
Class IngestClient
java.lang.Object
org.elasticsearch.client.IngestClient
A wrapper for the 
RestHighLevelClient that provides methods for accessing the Ingest API.
 - 
Method SummaryModifier and TypeMethodDescriptionorg.elasticsearch.action.support.master.AcknowledgedResponsedeletePipeline(org.elasticsearch.action.ingest.DeletePipelineRequest request, org.elasticsearch.client.RequestOptions options)Delete an existing pipeline.org.elasticsearch.client.CancellabledeletePipelineAsync(org.elasticsearch.action.ingest.DeletePipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener)Asynchronously delete an existing pipeline.geoIpStats(MainRequest request, org.elasticsearch.client.RequestOptions options)org.elasticsearch.client.CancellablegeoIpStatsAsync(MainRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GeoIpStatsResponse> listener)org.elasticsearch.action.ingest.GetPipelineResponsegetPipeline(org.elasticsearch.action.ingest.GetPipelineRequest request, org.elasticsearch.client.RequestOptions options)Get an existing pipeline.org.elasticsearch.client.CancellablegetPipelineAsync(org.elasticsearch.action.ingest.GetPipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.ingest.GetPipelineResponse> listener)Asynchronously get an existing pipeline.org.elasticsearch.action.support.master.AcknowledgedResponseputPipeline(org.elasticsearch.action.ingest.PutPipelineRequest request, org.elasticsearch.client.RequestOptions options)Add a pipeline or update an existing pipeline.org.elasticsearch.client.CancellableputPipelineAsync(org.elasticsearch.action.ingest.PutPipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener)Asynchronously add a pipeline or update an existing pipeline.org.elasticsearch.action.ingest.SimulatePipelineResponsesimulate(org.elasticsearch.action.ingest.SimulatePipelineRequest request, org.elasticsearch.client.RequestOptions options)Simulate a pipeline on a set of documents provided in the requestorg.elasticsearch.client.CancellablesimulateAsync(org.elasticsearch.action.ingest.SimulatePipelineRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.ingest.SimulatePipelineResponse> listener)Asynchronously simulate a pipeline on a set of documents provided in the request
- 
Method Details- 
putPipelinepublic org.elasticsearch.action.support.master.AcknowledgedResponse putPipeline(org.elasticsearch.action.ingest.PutPipelineRequest request, org.elasticsearch.client.RequestOptions options) throws IOExceptionAdd a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co- Parameters:
- request- the request
- options- the request options (e.g. headers), use- RequestOptions.DEFAULTif nothing needs to be customized
- Returns:
- the response
- Throws:
- IOException- in case there is a problem sending the request or parsing back the response
 
- 
putPipelineAsyncpublic 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)Asynchronously add a pipeline or update an existing pipeline. See Put Pipeline API on elastic.co- Parameters:
- request- the request
- options- the request options (e.g. headers), use- RequestOptions.DEFAULTif nothing needs to be customized
- listener- the listener to be notified upon request completion
- Returns:
- cancellable that may be used to cancel the request
 
- 
getPipelinepublic org.elasticsearch.action.ingest.GetPipelineResponse getPipeline(org.elasticsearch.action.ingest.GetPipelineRequest request, org.elasticsearch.client.RequestOptions options) throws IOExceptionGet an existing pipeline. See Get Pipeline API on elastic.co- Parameters:
- request- the request
- options- the request options (e.g. headers), use- RequestOptions.DEFAULTif nothing needs to be customized
- Returns:
- the response
- Throws:
- IOException- in case there is a problem sending the request or parsing back the response
 
- 
getPipelineAsyncpublic 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)Asynchronously get an existing pipeline. See Get Pipeline API on elastic.co- Parameters:
- request- the request
- options- the request options (e.g. headers), use- RequestOptions.DEFAULTif nothing needs to be customized
- listener- the listener to be notified upon request completion
- Returns:
- cancellable that may be used to cancel the request
 
- 
deletePipelinepublic org.elasticsearch.action.support.master.AcknowledgedResponse deletePipeline(org.elasticsearch.action.ingest.DeletePipelineRequest request, org.elasticsearch.client.RequestOptions options) throws IOExceptionDelete an existing pipeline. See Delete Pipeline API on elastic.co- Parameters:
- request- the request
- options- the request options (e.g. headers), use- RequestOptions.DEFAULTif nothing needs to be customized
- Returns:
- the response
- Throws:
- IOException- in case there is a problem sending the request or parsing back the response
 
- 
deletePipelineAsyncpublic 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)Asynchronously delete an existing pipeline. See Delete Pipeline API on elastic.co- Parameters:
- request- the request
- options- the request options (e.g. headers), use- RequestOptions.DEFAULTif nothing needs to be customized
- listener- the listener to be notified upon request completion
- Returns:
- cancellable that may be used to cancel the request
 
- 
simulatepublic org.elasticsearch.action.ingest.SimulatePipelineResponse simulate(org.elasticsearch.action.ingest.SimulatePipelineRequest request, org.elasticsearch.client.RequestOptions options) throws IOExceptionSimulate a pipeline on a set of documents provided in the request- Parameters:
- request- the request
- options- the request options (e.g. headers), use- RequestOptions.DEFAULTif nothing needs to be customized
- Returns:
- the response
- Throws:
- IOException- in case there is a problem sending the request or parsing back the response
 
- 
simulateAsyncpublic 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)Asynchronously simulate a pipeline on a set of documents provided in the request- Parameters:
- request- the request
- options- the request options (e.g. headers), use- RequestOptions.DEFAULTif nothing needs to be customized
- listener- the listener to be notified upon request completion
- Returns:
- cancellable that may be used to cancel the request
 
- 
geoIpStatspublic GeoIpStatsResponse geoIpStats(MainRequest request, org.elasticsearch.client.RequestOptions options) throws IOException- Throws:
- IOException
 
- 
geoIpStatsAsyncpublic org.elasticsearch.client.Cancellable geoIpStatsAsync(MainRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GeoIpStatsResponse> listener)
 
-