Class OpenSearchSearchRelevanceClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchSearchRelevanceClient>
org.opensearch.client.opensearch.search_relevance.OpenSearchSearchRelevanceClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchSearchRelevanceClient
extends ApiClient<OpenSearchTransport,OpenSearchSearchRelevanceClient>
Client for the search_relevance namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchSearchRelevanceClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeleteExperiments(Function<DeleteExperimentsRequest.Builder, ObjectBuilder<DeleteExperimentsRequest>> fn) Deletes a specified experiment.Deletes a specified experiment.final DeleteJudgmentsResponseDeletes a specified judgment.deleteJudgments(DeleteJudgmentsRequest request) Deletes a specified judgment.final DeleteQuerySetsResponseDeletes 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>
GetExperimentsResponse<TDocument> getExperiments(Function<GetExperimentsRequest.Builder, ObjectBuilder<GetExperimentsRequest>> fn, Class<TDocument> tDocumentClass) Gets experiments.<TDocument>
GetExperimentsResponse<TDocument> getExperiments(GetExperimentsRequest request, Class<TDocument> tDocumentClass) Gets experiments.final <TDocument>
GetJudgmentsResponse<TDocument> getJudgments(Function<GetJudgmentsRequest.Builder, ObjectBuilder<GetJudgmentsRequest>> fn, Class<TDocument> tDocumentClass) Gets judgments.<TDocument>
GetJudgmentsResponse<TDocument> getJudgments(GetJudgmentsRequest request, Class<TDocument> tDocumentClass) Gets judgments.final GetNodeStatsResponseGets stats by node.getNodeStats(GetNodeStatsRequest request) Gets stats by node.final <TDocument>
GetQuerySetsResponse<TDocument> getQuerySets(Function<GetQuerySetsRequest.Builder, ObjectBuilder<GetQuerySetsRequest>> fn, Class<TDocument> tDocumentClass) Lists the current query sets available.<TDocument>
GetQuerySetsResponse<TDocument> getQuerySets(GetQuerySetsRequest request, Class<TDocument> tDocumentClass) Lists the current query sets available.final <TDocument>
GetScheduledExperimentsResponse<TDocument> getScheduledExperiments(Function<GetScheduledExperimentsRequest.Builder, ObjectBuilder<GetScheduledExperimentsRequest>> fn, Class<TDocument> tDocumentClass) Gets the scheduled experiments.<TDocument>
GetScheduledExperimentsResponse<TDocument> getScheduledExperiments(GetScheduledExperimentsRequest request, Class<TDocument> tDocumentClass) Gets the scheduled experiments.final <TDocument>
GetSearchConfigurationsResponse<TDocument> getSearchConfigurations(Function<GetSearchConfigurationsRequest.Builder, ObjectBuilder<GetSearchConfigurationsRequest>> fn, Class<TDocument> tDocumentClass) Gets the search configurations.<TDocument>
GetSearchConfigurationsResponse<TDocument> getSearchConfigurations(GetSearchConfigurationsRequest request, Class<TDocument> tDocumentClass) Gets the search configurations.final GetStatsResponsegetStats()Gets stats.final GetStatsResponseGets stats.getStats(GetStatsRequest request) Gets stats.final PostQuerySetsResponseCreates a new query set by sampling queries from the user behavior data.final PostQuerySetsResponseCreates 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.final PutExperimentsResponseCreates an experiment.final PutExperimentsResponseCreates an experiment.putExperiments(PutExperimentsRequest request) Creates an experiment.final PutJudgmentsResponseCreates a judgment.final PutJudgmentsResponseCreates a judgment.putJudgments(PutJudgmentsRequest request) Creates a judgment.final PutQuerySetsResponseCreates a new query set by uploading manually.final PutQuerySetsResponseCreates 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
-
OpenSearchSearchRelevanceClient
-
OpenSearchSearchRelevanceClient
public OpenSearchSearchRelevanceClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public OpenSearchSearchRelevanceClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchSearchRelevanceClient>
-
deleteExperiments
public DeleteExperimentsResponse deleteExperiments(DeleteExperimentsRequest request) throws IOException, OpenSearchException Deletes a specified experiment.- Throws:
IOExceptionOpenSearchException
-
deleteExperiments
public final 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 DeleteJudgmentsResponse deleteJudgments(DeleteJudgmentsRequest request) throws IOException, OpenSearchException Deletes a specified judgment.- Throws:
IOExceptionOpenSearchException
-
deleteJudgments
public final 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 DeleteQuerySetsResponse deleteQuerySets(DeleteQuerySetsRequest request) throws IOException, OpenSearchException Deletes a query set.- Throws:
IOExceptionOpenSearchException
-
deleteQuerySets
public final 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 DeleteScheduledExperimentsResponse deleteScheduledExperiments(DeleteScheduledExperimentsRequest request) throws IOException, OpenSearchException Deletes a specified scheduled experiment.- Throws:
IOExceptionOpenSearchException
-
deleteScheduledExperiments
public final 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 DeleteSearchConfigurationsResponse deleteSearchConfigurations(DeleteSearchConfigurationsRequest request) throws IOException, OpenSearchException Deletes a specified search configuration.- Throws:
IOExceptionOpenSearchException
-
deleteSearchConfigurations
public final 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> GetExperimentsResponse<TDocument> getExperiments(GetExperimentsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Gets experiments.- Throws:
IOExceptionOpenSearchException
-
getExperiments
public final <TDocument> 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> GetJudgmentsResponse<TDocument> getJudgments(GetJudgmentsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Gets judgments.- Throws:
IOExceptionOpenSearchException
-
getJudgments
public final <TDocument> 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 GetNodeStatsResponse getNodeStats(GetNodeStatsRequest request) throws IOException, OpenSearchException Gets stats by node.- Throws:
IOExceptionOpenSearchException
-
getNodeStats
public final 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> GetQuerySetsResponse<TDocument> getQuerySets(GetQuerySetsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Lists the current query sets available.- Throws:
IOExceptionOpenSearchException
-
getQuerySets
public final <TDocument> 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> GetScheduledExperimentsResponse<TDocument> getScheduledExperiments(GetScheduledExperimentsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Gets the scheduled experiments.- Throws:
IOExceptionOpenSearchException
-
getScheduledExperiments
public final <TDocument> 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> GetSearchConfigurationsResponse<TDocument> getSearchConfigurations(GetSearchConfigurationsRequest request, Class<TDocument> tDocumentClass) throws IOException, OpenSearchException Gets the search configurations.- Throws:
IOExceptionOpenSearchException
-
getSearchConfigurations
public final <TDocument> 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
Gets stats.- Throws:
IOExceptionOpenSearchException
-
getStats
public final 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 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 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
Creates a new query set by sampling queries from the user behavior data.- Throws:
IOExceptionOpenSearchException
-
postScheduledExperiments
public PostScheduledExperimentsResponse postScheduledExperiments(PostScheduledExperimentsRequest request) throws IOException, OpenSearchException Creates a scheduled experiment.- Throws:
IOExceptionOpenSearchException
-
postScheduledExperiments
public final 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 PostScheduledExperimentsResponse postScheduledExperiments() throws IOException, OpenSearchExceptionCreates a scheduled experiment.- Throws:
IOExceptionOpenSearchException
-
putExperiments
public PutExperimentsResponse putExperiments(PutExperimentsRequest request) throws IOException, OpenSearchException Creates an experiment.- Throws:
IOExceptionOpenSearchException
-
putExperiments
public final 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
Creates an experiment.- Throws:
IOExceptionOpenSearchException
-
putJudgments
public PutJudgmentsResponse putJudgments(PutJudgmentsRequest request) throws IOException, OpenSearchException Creates a judgment.- Throws:
IOExceptionOpenSearchException
-
putJudgments
public final 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
Creates a judgment.- Throws:
IOExceptionOpenSearchException
-
putQuerySets
public PutQuerySetsResponse putQuerySets(PutQuerySetsRequest request) throws IOException, OpenSearchException Creates a new query set by uploading manually.- Throws:
IOExceptionOpenSearchException
-
putQuerySets
public final 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
Creates a new query set by uploading manually.- Throws:
IOExceptionOpenSearchException
-
putSearchConfigurations
public PutSearchConfigurationsResponse putSearchConfigurations(PutSearchConfigurationsRequest request) throws IOException, OpenSearchException Creates a search configuration.- Throws:
IOExceptionOpenSearchException
-
putSearchConfigurations
public final 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 PutSearchConfigurationsResponse putSearchConfigurations() throws IOException, OpenSearchExceptionCreates a search configuration.- Throws:
IOExceptionOpenSearchException
-