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.deleteSearchConfigurations(Function<DeleteSearchConfigurationsRequest.Builder, ObjectBuilder<DeleteSearchConfigurationsRequest>> fn) Deletes a specified search configuration.Deletes a specified search configuration.final GetExperimentsResponseGets experiments.final GetExperimentsResponseGets experiments.getExperiments(GetExperimentsRequest request) Gets experiments.final GetJudgmentsResponseGets judgments.final GetJudgmentsResponseGets judgments.getJudgments(GetJudgmentsRequest request) Gets judgments.final GetNodeStatsResponseGets stats by node.getNodeStats(GetNodeStatsRequest request) Gets stats by node.final GetQuerySetsResponseLists the current query sets available.final GetQuerySetsResponseLists 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.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.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
-
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 GetExperimentsResponse getExperiments(GetExperimentsRequest request) throws IOException, OpenSearchException Gets experiments.- Throws:
IOExceptionOpenSearchException
-
getExperiments
public final 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
Gets experiments.- Throws:
IOExceptionOpenSearchException
-
getJudgments
public GetJudgmentsResponse getJudgments(GetJudgmentsRequest request) throws IOException, OpenSearchException Gets judgments.- Throws:
IOExceptionOpenSearchException
-
getJudgments
public final 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
Gets judgments.- 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 GetQuerySetsResponse getQuerySets(GetQuerySetsRequest request) throws IOException, OpenSearchException Lists the current query sets available.- Throws:
IOExceptionOpenSearchException
-
getQuerySets
public final 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
Lists the current query sets available.- Throws:
IOExceptionOpenSearchException
-
getSearchConfigurations
public GetSearchConfigurationsResponse getSearchConfigurations(GetSearchConfigurationsRequest request) throws IOException, OpenSearchException Gets the search configurations.- Throws:
IOExceptionOpenSearchException
-
getSearchConfigurations
public final 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 GetSearchConfigurationsResponse getSearchConfigurations() throws IOException, OpenSearchExceptionGets the search configurations.- 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
-
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
-