Package org.opensearch.client
Class SearchPipelineClient
java.lang.Object
org.opensearch.client.SearchPipelineClient
-
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.action.support.master.AcknowledgedResponsedelete(org.opensearch.action.search.DeleteSearchPipelineRequest request, org.opensearch.client.RequestOptions options) Delete an existing pipeline.org.opensearch.client.CancellabledeleteAsync(org.opensearch.action.search.DeleteSearchPipelineRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously delete an existing pipeline.org.opensearch.action.search.GetSearchPipelineResponseget(org.opensearch.action.search.GetSearchPipelineRequest request, org.opensearch.client.RequestOptions options) Get existing pipelines.org.opensearch.client.CancellablegetAsync(org.opensearch.action.search.GetSearchPipelineRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.search.GetSearchPipelineResponse> listener) Asynchronously get existing pipelines.org.opensearch.action.support.master.AcknowledgedResponseput(org.opensearch.action.search.PutSearchPipelineRequest request, org.opensearch.client.RequestOptions options) Add a pipeline or update an existing pipeline.org.opensearch.client.CancellableputAsync(org.opensearch.action.search.PutSearchPipelineRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously add a pipeline or update an existing pipeline.
-
Method Details
-
put
public org.opensearch.action.support.master.AcknowledgedResponse put(org.opensearch.action.search.PutSearchPipelineRequest request, org.opensearch.client.RequestOptions options) throws IOException Add a pipeline or update an existing pipeline.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.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
-
putAsync
public org.opensearch.client.Cancellable putAsync(org.opensearch.action.search.PutSearchPipelineRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously add a pipeline or update an existing pipeline.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
get
public org.opensearch.action.search.GetSearchPipelineResponse get(org.opensearch.action.search.GetSearchPipelineRequest request, org.opensearch.client.RequestOptions options) throws IOException Get existing pipelines.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.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
-
getAsync
public org.opensearch.client.Cancellable getAsync(org.opensearch.action.search.GetSearchPipelineRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.search.GetSearchPipelineResponse> listener) Asynchronously get existing pipelines.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
delete
public org.opensearch.action.support.master.AcknowledgedResponse delete(org.opensearch.action.search.DeleteSearchPipelineRequest request, org.opensearch.client.RequestOptions options) throws IOException Delete an existing pipeline.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.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
-
deleteAsync
public org.opensearch.client.Cancellable deleteAsync(org.opensearch.action.search.DeleteSearchPipelineRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously delete an existing pipeline.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-