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.deleteScheduledExperiments(Function<DeleteScheduledExperimentsRequest.Builder, ObjectBuilder<DeleteScheduledExperimentsRequest>> fn) Deletes a specified scheduled experiment.Deletes a specified scheduled experiment.deleteSearchConfigurations(Function<DeleteSearchConfigurationsRequest.Builder, ObjectBuilder<DeleteSearchConfigurationsRequest>> fn) Deletes a specified search configuration.Deletes a specified search configuration.final <TDocument>
CompletableFuture<GetExperimentsResponse<TDocument>> getExperiments(Function<GetExperimentsRequest.Builder, ObjectBuilder<GetExperimentsRequest>> fn, Class<TDocument> tDocumentClass) Gets experiments.<TDocument>
CompletableFuture<GetExperimentsResponse<TDocument>> getExperiments(GetExperimentsRequest request, Class<TDocument> tDocumentClass) Gets experiments.final <TDocument>
CompletableFuture<GetJudgmentsResponse<TDocument>> getJudgments(Function<GetJudgmentsRequest.Builder, ObjectBuilder<GetJudgmentsRequest>> fn, Class<TDocument> tDocumentClass) Gets judgments.<TDocument>
CompletableFuture<GetJudgmentsResponse<TDocument>> getJudgments(GetJudgmentsRequest request, Class<TDocument> tDocumentClass) Gets judgments.Gets stats by node.getNodeStats(GetNodeStatsRequest request) Gets stats by node.final <TDocument>
CompletableFuture<GetQuerySetsResponse<TDocument>> getQuerySets(Function<GetQuerySetsRequest.Builder, ObjectBuilder<GetQuerySetsRequest>> fn, Class<TDocument> tDocumentClass) Lists the current query sets available.<TDocument>
CompletableFuture<GetQuerySetsResponse<TDocument>> getQuerySets(GetQuerySetsRequest request, Class<TDocument> tDocumentClass) Lists the current query sets available.final <TDocument>
CompletableFuture<GetScheduledExperimentsResponse<TDocument>> getScheduledExperiments(Function<GetScheduledExperimentsRequest.Builder, ObjectBuilder<GetScheduledExperimentsRequest>> fn, Class<TDocument> tDocumentClass) Gets the scheduled experiments.<TDocument>
CompletableFuture<GetScheduledExperimentsResponse<TDocument>> getScheduledExperiments(GetScheduledExperimentsRequest request, Class<TDocument> tDocumentClass) Gets the scheduled experiments.final <TDocument>
CompletableFuture<GetSearchConfigurationsResponse<TDocument>> getSearchConfigurations(Function<GetSearchConfigurationsRequest.Builder, ObjectBuilder<GetSearchConfigurationsRequest>> fn, Class<TDocument> tDocumentClass) Gets the search configurations.<TDocument>
CompletableFuture<GetSearchConfigurationsResponse<TDocument>> getSearchConfigurations(GetSearchConfigurationsRequest request, Class<TDocument> tDocumentClass) 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 a scheduled experiment.postScheduledExperiments(Function<PostScheduledExperimentsRequest.Builder, ObjectBuilder<PostScheduledExperimentsRequest>> fn) Creates a scheduled experiment.Creates a scheduled experiment.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
-
deleteScheduledExperiments
public CompletableFuture<DeleteScheduledExperimentsResponse> deleteScheduledExperiments(DeleteScheduledExperimentsRequest request) throws IOException, OpenSearchException Deletes a specified scheduled experiment.- Throws:
IOExceptionOpenSearchException
-
deleteScheduledExperiments
public final CompletableFuture<DeleteScheduledExperimentsResponse> deleteScheduledExperiments(Function<DeleteScheduledExperimentsRequest.Builder, ObjectBuilder<DeleteScheduledExperimentsRequest>> fn) throws IOException, OpenSearchExceptionDeletes a specified scheduled experiment.- Parameters:
fn- a function that initializes a builder to create theDeleteScheduledExperimentsRequest- 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 <TDocument> CompletableFuture<GetExperimentsResponse<TDocument>> getExperiments(GetExperimentsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Gets experiments.- Throws:
IOExceptionOpenSearchException
-
getExperiments
public final <TDocument> CompletableFuture<GetExperimentsResponse<TDocument>> getExperiments(Function<GetExperimentsRequest.Builder, ObjectBuilder<GetExperimentsRequest>> fn, Class<TDocument> tDocumentClass) throws IOException, OpenSearchExceptionGets experiments.- Parameters:
fn- a function that initializes a builder to create theGetExperimentsRequest- Throws:
IOExceptionOpenSearchException
-
getJudgments
public <TDocument> CompletableFuture<GetJudgmentsResponse<TDocument>> getJudgments(GetJudgmentsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Gets judgments.- Throws:
IOExceptionOpenSearchException
-
getJudgments
public final <TDocument> CompletableFuture<GetJudgmentsResponse<TDocument>> getJudgments(Function<GetJudgmentsRequest.Builder, ObjectBuilder<GetJudgmentsRequest>> fn, Class<TDocument> tDocumentClass) throws IOException, OpenSearchExceptionGets judgments.- Parameters:
fn- a function that initializes a builder to create theGetJudgmentsRequest- 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 <TDocument> CompletableFuture<GetQuerySetsResponse<TDocument>> getQuerySets(GetQuerySetsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Lists the current query sets available.- Throws:
IOExceptionOpenSearchException
-
getQuerySets
public final <TDocument> CompletableFuture<GetQuerySetsResponse<TDocument>> getQuerySets(Function<GetQuerySetsRequest.Builder, ObjectBuilder<GetQuerySetsRequest>> fn, Class<TDocument> tDocumentClass) throws IOException, OpenSearchExceptionLists the current query sets available.- Parameters:
fn- a function that initializes a builder to create theGetQuerySetsRequest- Throws:
IOExceptionOpenSearchException
-
getScheduledExperiments
public <TDocument> CompletableFuture<GetScheduledExperimentsResponse<TDocument>> getScheduledExperiments(GetScheduledExperimentsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Gets the scheduled experiments.- Throws:
IOExceptionOpenSearchException
-
getScheduledExperiments
public final <TDocument> CompletableFuture<GetScheduledExperimentsResponse<TDocument>> getScheduledExperiments(Function<GetScheduledExperimentsRequest.Builder, ObjectBuilder<GetScheduledExperimentsRequest>> fn, Class<TDocument> tDocumentClass) throws IOException, OpenSearchExceptionGets the scheduled experiments.- Parameters:
fn- a function that initializes a builder to create theGetScheduledExperimentsRequest- Throws:
IOExceptionOpenSearchException
-
getSearchConfigurations
public <TDocument> CompletableFuture<GetSearchConfigurationsResponse<TDocument>> getSearchConfigurations(GetSearchConfigurationsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Gets the search configurations.- Throws:
IOExceptionOpenSearchException
-
getSearchConfigurations
public final <TDocument> CompletableFuture<GetSearchConfigurationsResponse<TDocument>> getSearchConfigurations(Function<GetSearchConfigurationsRequest.Builder, ObjectBuilder<GetSearchConfigurationsRequest>> fn, Class<TDocument> tDocumentClass) throws IOException, OpenSearchExceptionGets the search configurations.- Parameters:
fn- a function that initializes a builder to create theGetSearchConfigurationsRequest- 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
-
postScheduledExperiments
public CompletableFuture<PostScheduledExperimentsResponse> postScheduledExperiments(PostScheduledExperimentsRequest request) throws IOException, OpenSearchException Creates a scheduled experiment.- Throws:
IOExceptionOpenSearchException
-
postScheduledExperiments
public final CompletableFuture<PostScheduledExperimentsResponse> postScheduledExperiments(Function<PostScheduledExperimentsRequest.Builder, ObjectBuilder<PostScheduledExperimentsRequest>> fn) throws IOException, OpenSearchExceptionCreates a scheduled experiment.- Parameters:
fn- a function that initializes a builder to create thePostScheduledExperimentsRequest- Throws:
IOExceptionOpenSearchException
-
postScheduledExperiments
public final CompletableFuture<PostScheduledExperimentsResponse> postScheduledExperiments() throws IOException, OpenSearchExceptionCreates a scheduled experiment.- 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
-