Class OpenSearchSearchRelevanceAsyncClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchSearchRelevanceAsyncClient>
org.opensearch.client.opensearch.search_relevance.OpenSearchSearchRelevanceAsyncClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchSearchRelevanceAsyncClient
extends ApiClient<OpenSearchTransport,OpenSearchSearchRelevanceAsyncClient>
Client for the search_relevance namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchSearchRelevanceAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeleteExperiments(Function<DeleteExperimentsRequest.Builder, ObjectBuilder<DeleteExperimentsRequest>> fn) Deletes a specified experiment.Deletes a specified experiment.Deletes a specified judgment.deleteJudgments(DeleteJudgmentsRequest request) Deletes a specified judgment.Deletes a query set.deleteQuerySets(DeleteQuerySetsRequest request) Deletes a query set.deleteSearchConfigurations(Function<DeleteSearchConfigurationsRequest.Builder, ObjectBuilder<DeleteSearchConfigurationsRequest>> fn) Deletes a specified search configuration.Deletes a specified search configuration.Gets experiments.Gets experiments.getExperiments(GetExperimentsRequest request) Gets experiments.Gets judgments.Gets judgments.getJudgments(GetJudgmentsRequest request) Gets judgments.Gets stats by node.getNodeStats(GetNodeStatsRequest request) Gets stats by node.Lists the current query sets available.Lists the current query sets available.getQuerySets(GetQuerySetsRequest request) Lists the current query sets available.Gets the search configurations.getSearchConfigurations(Function<GetSearchConfigurationsRequest.Builder, ObjectBuilder<GetSearchConfigurationsRequest>> fn) Gets the search configurations.Gets the search configurations.getStats()Gets stats.Gets stats.getStats(GetStatsRequest request) Gets stats.Creates a new query set by sampling queries from the user behavior data.Creates a new query set by sampling queries from the user behavior data.postQuerySets(PostQuerySetsRequest request) Creates a new query set by sampling queries from the user behavior data.Creates an experiment.Creates an experiment.putExperiments(PutExperimentsRequest request) Creates an experiment.Creates a judgment.Creates a judgment.putJudgments(PutJudgmentsRequest request) Creates a judgment.Creates a new query set by uploading manually.Creates a new query set by uploading manually.putQuerySets(PutQuerySetsRequest request) Creates a new query set by uploading manually.Creates a search configuration.putSearchConfigurations(Function<PutSearchConfigurationsRequest.Builder, ObjectBuilder<PutSearchConfigurationsRequest>> fn) Creates a search configuration.Creates a search configuration.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchSearchRelevanceAsyncClient
-
OpenSearchSearchRelevanceAsyncClient
public OpenSearchSearchRelevanceAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public OpenSearchSearchRelevanceAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchSearchRelevanceAsyncClient>
-
deleteExperiments
public CompletableFuture<DeleteExperimentsResponse> deleteExperiments(DeleteExperimentsRequest request) throws IOException, OpenSearchException Deletes a specified experiment.- Throws:
IOExceptionOpenSearchException
-
deleteExperiments
public final CompletableFuture<DeleteExperimentsResponse> deleteExperiments(Function<DeleteExperimentsRequest.Builder, ObjectBuilder<DeleteExperimentsRequest>> fn) throws IOException, OpenSearchExceptionDeletes a specified experiment.- Parameters:
fn- a function that initializes a builder to create theDeleteExperimentsRequest- Throws:
IOExceptionOpenSearchException
-
deleteJudgments
public CompletableFuture<DeleteJudgmentsResponse> deleteJudgments(DeleteJudgmentsRequest request) throws IOException, OpenSearchException Deletes a specified judgment.- Throws:
IOExceptionOpenSearchException
-
deleteJudgments
public final CompletableFuture<DeleteJudgmentsResponse> deleteJudgments(Function<DeleteJudgmentsRequest.Builder, ObjectBuilder<DeleteJudgmentsRequest>> fn) throws IOException, OpenSearchExceptionDeletes a specified judgment.- Parameters:
fn- a function that initializes a builder to create theDeleteJudgmentsRequest- Throws:
IOExceptionOpenSearchException
-
deleteQuerySets
public CompletableFuture<DeleteQuerySetsResponse> deleteQuerySets(DeleteQuerySetsRequest request) throws IOException, OpenSearchException Deletes a query set.- Throws:
IOExceptionOpenSearchException
-
deleteQuerySets
public final CompletableFuture<DeleteQuerySetsResponse> deleteQuerySets(Function<DeleteQuerySetsRequest.Builder, ObjectBuilder<DeleteQuerySetsRequest>> fn) throws IOException, OpenSearchExceptionDeletes a query set.- Parameters:
fn- a function that initializes a builder to create theDeleteQuerySetsRequest- Throws:
IOExceptionOpenSearchException
-
deleteSearchConfigurations
public CompletableFuture<DeleteSearchConfigurationsResponse> deleteSearchConfigurations(DeleteSearchConfigurationsRequest request) throws IOException, OpenSearchException Deletes a specified search configuration.- Throws:
IOExceptionOpenSearchException
-
deleteSearchConfigurations
public final CompletableFuture<DeleteSearchConfigurationsResponse> deleteSearchConfigurations(Function<DeleteSearchConfigurationsRequest.Builder, ObjectBuilder<DeleteSearchConfigurationsRequest>> fn) throws IOException, OpenSearchExceptionDeletes a specified search configuration.- Parameters:
fn- a function that initializes a builder to create theDeleteSearchConfigurationsRequest- Throws:
IOExceptionOpenSearchException
-
getExperiments
public CompletableFuture<GetExperimentsResponse> getExperiments(GetExperimentsRequest request) throws IOException, OpenSearchException Gets experiments.- Throws:
IOExceptionOpenSearchException
-
getExperiments
public final CompletableFuture<GetExperimentsResponse> getExperiments(Function<GetExperimentsRequest.Builder, ObjectBuilder<GetExperimentsRequest>> fn) throws IOException, OpenSearchExceptionGets experiments.- Parameters:
fn- a function that initializes a builder to create theGetExperimentsRequest- Throws:
IOExceptionOpenSearchException
-
getExperiments
public final CompletableFuture<GetExperimentsResponse> getExperiments() throws IOException, OpenSearchExceptionGets experiments.- Throws:
IOExceptionOpenSearchException
-
getJudgments
public CompletableFuture<GetJudgmentsResponse> getJudgments(GetJudgmentsRequest request) throws IOException, OpenSearchException Gets judgments.- Throws:
IOExceptionOpenSearchException
-
getJudgments
public final CompletableFuture<GetJudgmentsResponse> getJudgments(Function<GetJudgmentsRequest.Builder, ObjectBuilder<GetJudgmentsRequest>> fn) throws IOException, OpenSearchExceptionGets judgments.- Parameters:
fn- a function that initializes a builder to create theGetJudgmentsRequest- Throws:
IOExceptionOpenSearchException
-
getJudgments
public final CompletableFuture<GetJudgmentsResponse> getJudgments() throws IOException, OpenSearchExceptionGets judgments.- Throws:
IOExceptionOpenSearchException
-
getNodeStats
public CompletableFuture<GetNodeStatsResponse> getNodeStats(GetNodeStatsRequest request) throws IOException, OpenSearchException Gets stats by node.- Throws:
IOExceptionOpenSearchException
-
getNodeStats
public final CompletableFuture<GetNodeStatsResponse> getNodeStats(Function<GetNodeStatsRequest.Builder, ObjectBuilder<GetNodeStatsRequest>> fn) throws IOException, OpenSearchExceptionGets stats by node.- Parameters:
fn- a function that initializes a builder to create theGetNodeStatsRequest- Throws:
IOExceptionOpenSearchException
-
getQuerySets
public CompletableFuture<GetQuerySetsResponse> getQuerySets(GetQuerySetsRequest request) throws IOException, OpenSearchException Lists the current query sets available.- Throws:
IOExceptionOpenSearchException
-
getQuerySets
public final CompletableFuture<GetQuerySetsResponse> getQuerySets(Function<GetQuerySetsRequest.Builder, ObjectBuilder<GetQuerySetsRequest>> fn) throws IOException, OpenSearchExceptionLists the current query sets available.- Parameters:
fn- a function that initializes a builder to create theGetQuerySetsRequest- Throws:
IOExceptionOpenSearchException
-
getQuerySets
public final CompletableFuture<GetQuerySetsResponse> getQuerySets() throws IOException, OpenSearchExceptionLists the current query sets available.- Throws:
IOExceptionOpenSearchException
-
getSearchConfigurations
public CompletableFuture<GetSearchConfigurationsResponse> getSearchConfigurations(GetSearchConfigurationsRequest request) throws IOException, OpenSearchException Gets the search configurations.- Throws:
IOExceptionOpenSearchException
-
getSearchConfigurations
public final CompletableFuture<GetSearchConfigurationsResponse> getSearchConfigurations(Function<GetSearchConfigurationsRequest.Builder, ObjectBuilder<GetSearchConfigurationsRequest>> fn) throws IOException, OpenSearchExceptionGets the search configurations.- Parameters:
fn- a function that initializes a builder to create theGetSearchConfigurationsRequest- Throws:
IOExceptionOpenSearchException
-
getSearchConfigurations
public final CompletableFuture<GetSearchConfigurationsResponse> getSearchConfigurations() throws IOException, OpenSearchExceptionGets the search configurations.- Throws:
IOExceptionOpenSearchException
-
getStats
public CompletableFuture<GetStatsResponse> getStats(GetStatsRequest request) throws IOException, OpenSearchException Gets stats.- Throws:
IOExceptionOpenSearchException
-
getStats
public final CompletableFuture<GetStatsResponse> getStats(Function<GetStatsRequest.Builder, ObjectBuilder<GetStatsRequest>> fn) throws IOException, OpenSearchExceptionGets stats.- Parameters:
fn- a function that initializes a builder to create theGetStatsRequest- Throws:
IOExceptionOpenSearchException
-
getStats
Gets stats.- Throws:
IOExceptionOpenSearchException
-
postQuerySets
public CompletableFuture<PostQuerySetsResponse> postQuerySets(PostQuerySetsRequest request) throws IOException, OpenSearchException Creates a new query set by sampling queries from the user behavior data.- Throws:
IOExceptionOpenSearchException
-
postQuerySets
public final CompletableFuture<PostQuerySetsResponse> postQuerySets(Function<PostQuerySetsRequest.Builder, ObjectBuilder<PostQuerySetsRequest>> fn) throws IOException, OpenSearchExceptionCreates a new query set by sampling queries from the user behavior data.- Parameters:
fn- a function that initializes a builder to create thePostQuerySetsRequest- Throws:
IOExceptionOpenSearchException
-
postQuerySets
public final CompletableFuture<PostQuerySetsResponse> postQuerySets() throws IOException, OpenSearchExceptionCreates a new query set by sampling queries from the user behavior data.- Throws:
IOExceptionOpenSearchException
-
putExperiments
public CompletableFuture<PutExperimentsResponse> putExperiments(PutExperimentsRequest request) throws IOException, OpenSearchException Creates an experiment.- Throws:
IOExceptionOpenSearchException
-
putExperiments
public final CompletableFuture<PutExperimentsResponse> putExperiments(Function<PutExperimentsRequest.Builder, ObjectBuilder<PutExperimentsRequest>> fn) throws IOException, OpenSearchExceptionCreates an experiment.- Parameters:
fn- a function that initializes a builder to create thePutExperimentsRequest- Throws:
IOExceptionOpenSearchException
-
putExperiments
public final CompletableFuture<PutExperimentsResponse> putExperiments() throws IOException, OpenSearchExceptionCreates an experiment.- Throws:
IOExceptionOpenSearchException
-
putJudgments
public CompletableFuture<PutJudgmentsResponse> putJudgments(PutJudgmentsRequest request) throws IOException, OpenSearchException Creates a judgment.- Throws:
IOExceptionOpenSearchException
-
putJudgments
public final CompletableFuture<PutJudgmentsResponse> putJudgments(Function<PutJudgmentsRequest.Builder, ObjectBuilder<PutJudgmentsRequest>> fn) throws IOException, OpenSearchExceptionCreates a judgment.- Parameters:
fn- a function that initializes a builder to create thePutJudgmentsRequest- Throws:
IOExceptionOpenSearchException
-
putJudgments
public final CompletableFuture<PutJudgmentsResponse> putJudgments() throws IOException, OpenSearchExceptionCreates a judgment.- Throws:
IOExceptionOpenSearchException
-
putQuerySets
public CompletableFuture<PutQuerySetsResponse> putQuerySets(PutQuerySetsRequest request) throws IOException, OpenSearchException Creates a new query set by uploading manually.- Throws:
IOExceptionOpenSearchException
-
putQuerySets
public final CompletableFuture<PutQuerySetsResponse> putQuerySets(Function<PutQuerySetsRequest.Builder, ObjectBuilder<PutQuerySetsRequest>> fn) throws IOException, OpenSearchExceptionCreates a new query set by uploading manually.- Parameters:
fn- a function that initializes a builder to create thePutQuerySetsRequest- Throws:
IOExceptionOpenSearchException
-
putQuerySets
public final CompletableFuture<PutQuerySetsResponse> putQuerySets() throws IOException, OpenSearchExceptionCreates a new query set by uploading manually.- Throws:
IOExceptionOpenSearchException
-
putSearchConfigurations
public CompletableFuture<PutSearchConfigurationsResponse> putSearchConfigurations(PutSearchConfigurationsRequest request) throws IOException, OpenSearchException Creates a search configuration.- Throws:
IOExceptionOpenSearchException
-
putSearchConfigurations
public final CompletableFuture<PutSearchConfigurationsResponse> putSearchConfigurations(Function<PutSearchConfigurationsRequest.Builder, ObjectBuilder<PutSearchConfigurationsRequest>> fn) throws IOException, OpenSearchExceptionCreates a search configuration.- Parameters:
fn- a function that initializes a builder to create thePutSearchConfigurationsRequest- Throws:
IOExceptionOpenSearchException
-
putSearchConfigurations
public final CompletableFuture<PutSearchConfigurationsResponse> putSearchConfigurations() throws IOException, OpenSearchExceptionCreates a search configuration.- Throws:
IOExceptionOpenSearchException
-