Class ElasticsearchSynonymsAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchSynonymsAsyncClient>
co.elastic.clients.elasticsearch.synonyms.ElasticsearchSynonymsAsyncClient
public class ElasticsearchSynonymsAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchSynonymsAsyncClient>
Client for the synonyms namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorDescriptionElasticsearchSynonymsAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeleteSynonym
(DeleteSynonymRequest request) Deletes a synonym setDeletes a synonym setDeletes a synonym rule in a synonym setdeleteSynonymRule
(Function<DeleteSynonymRuleRequest.Builder, ObjectBuilder<DeleteSynonymRuleRequest>> fn) Deletes a synonym rule in a synonym setgetSynonym
(GetSynonymRequest request) Retrieves a synonym setRetrieves a synonym setgetSynonymRule
(GetSynonymRuleRequest request) Retrieves a synonym rule from a synonym setRetrieves a synonym rule from a synonym setRetrieves a summary of all defined synonym setsgetSynonymsSets
(GetSynonymsSetsRequest request) Retrieves a summary of all defined synonym setsRetrieves a summary of all defined synonym setsputSynonym
(PutSynonymRequest request) Creates or updates a synonyms setCreates or updates a synonyms setputSynonymRule
(PutSynonymRuleRequest request) Creates or updates a synonym rule in a synonym setCreates or updates a synonym rule in a synonym setwithTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchSynonymsAsyncClient
-
ElasticsearchSynonymsAsyncClient
public ElasticsearchSynonymsAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchSynonymsAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchSynonymsAsyncClient>
-
deleteSynonym
Deletes a synonym set- See Also:
-
deleteSynonym
public final CompletableFuture<DeleteSynonymResponse> deleteSynonym(Function<DeleteSynonymRequest.Builder, ObjectBuilder<DeleteSynonymRequest>> fn) Deletes a synonym set- Parameters:
fn
- a function that initializes a builder to create theDeleteSynonymRequest
- See Also:
-
deleteSynonymRule
public CompletableFuture<DeleteSynonymRuleResponse> deleteSynonymRule(DeleteSynonymRuleRequest request) Deletes a synonym rule in a synonym set- See Also:
-
deleteSynonymRule
public final CompletableFuture<DeleteSynonymRuleResponse> deleteSynonymRule(Function<DeleteSynonymRuleRequest.Builder, ObjectBuilder<DeleteSynonymRuleRequest>> fn) Deletes a synonym rule in a synonym set- Parameters:
fn
- a function that initializes a builder to create theDeleteSynonymRuleRequest
- See Also:
-
getSynonym
Retrieves a synonym set- See Also:
-
getSynonym
public final CompletableFuture<GetSynonymResponse> getSynonym(Function<GetSynonymRequest.Builder, ObjectBuilder<GetSynonymRequest>> fn) Retrieves a synonym set- Parameters:
fn
- a function that initializes a builder to create theGetSynonymRequest
- See Also:
-
getSynonymRule
Retrieves a synonym rule from a synonym set- See Also:
-
getSynonymRule
public final CompletableFuture<GetSynonymRuleResponse> getSynonymRule(Function<GetSynonymRuleRequest.Builder, ObjectBuilder<GetSynonymRuleRequest>> fn) Retrieves a synonym rule from a synonym set- Parameters:
fn
- a function that initializes a builder to create theGetSynonymRuleRequest
- See Also:
-
getSynonymsSets
Retrieves a summary of all defined synonym sets- See Also:
-
getSynonymsSets
public final CompletableFuture<GetSynonymsSetsResponse> getSynonymsSets(Function<GetSynonymsSetsRequest.Builder, ObjectBuilder<GetSynonymsSetsRequest>> fn) Retrieves a summary of all defined synonym sets- Parameters:
fn
- a function that initializes a builder to create theGetSynonymsSetsRequest
- See Also:
-
getSynonymsSets
Retrieves a summary of all defined synonym sets- See Also:
-
putSynonym
Creates or updates a synonyms set- See Also:
-
putSynonym
public final CompletableFuture<PutSynonymResponse> putSynonym(Function<PutSynonymRequest.Builder, ObjectBuilder<PutSynonymRequest>> fn) Creates or updates a synonyms set- Parameters:
fn
- a function that initializes a builder to create thePutSynonymRequest
- See Also:
-
putSynonymRule
Creates or updates a synonym rule in a synonym set- See Also:
-
putSynonymRule
public final CompletableFuture<PutSynonymRuleResponse> putSynonymRule(Function<PutSynonymRuleRequest.Builder, ObjectBuilder<PutSynonymRuleRequest>> fn) Creates or updates a synonym rule in a synonym set- Parameters:
fn
- a function that initializes a builder to create thePutSynonymRuleRequest
- See Also:
-