Class ElasticsearchSearchApplicationClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchSearchApplicationClient>
co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchSearchApplicationClient
extends ApiClient<ElasticsearchTransport,ElasticsearchSearchApplicationClient>
Client for the search_application namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchSearchApplicationClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondelete
(DeleteSearchApplicationRequest request) Delete a search application.delete
(Function<DeleteSearchApplicationRequest.Builder, ObjectBuilder<DeleteSearchApplicationRequest>> fn) Delete a search application.Delete a behavioral analytics collection.deleteBehavioralAnalytics
(Function<DeleteBehavioralAnalyticsRequest.Builder, ObjectBuilder<DeleteBehavioralAnalyticsRequest>> fn) Delete a behavioral analytics collection.get
(GetSearchApplicationRequest request) Get search application details.Get search application details.Get behavioral analytics collections.Get behavioral analytics collections.getBehavioralAnalytics
(Function<GetBehavioralAnalyticsRequest.Builder, ObjectBuilder<GetBehavioralAnalyticsRequest>> fn) Get behavioral analytics collections.list()
Get search applications.list
(ListRequest request) Get search applications.final ListResponse
Get search applications.Create a behavioral analytics collection event.postBehavioralAnalyticsEvent
(Function<PostBehavioralAnalyticsEventRequest.Builder, ObjectBuilder<PostBehavioralAnalyticsEventRequest>> fn) Create a behavioral analytics collection event.put
(PutRequest request) Create or update a search application.final PutResponse
Create or update a search application.Create a behavioral analytics collection.putBehavioralAnalytics
(Function<PutBehavioralAnalyticsRequest.Builder, ObjectBuilder<PutBehavioralAnalyticsRequest>> fn) Create a behavioral analytics collection.renderQuery
(RenderQueryRequest request) Render a search application query.final RenderQueryResponse
Render a search application query.search
(SearchApplicationSearchRequest request) Overload ofsearch(SearchApplicationSearchRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.<TDocument>
SearchApplicationSearchResponse<TDocument>search
(SearchApplicationSearchRequest request, Class<TDocument> tDocumentClass) Run a search application search.<TDocument>
SearchApplicationSearchResponse<TDocument>search
(SearchApplicationSearchRequest request, Type tDocumentType) Run a search application search.search
(Function<SearchApplicationSearchRequest.Builder, ObjectBuilder<SearchApplicationSearchRequest>> fn) Overload ofsearch(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.final <TDocument>
SearchApplicationSearchResponse<TDocument>search
(Function<SearchApplicationSearchRequest.Builder, ObjectBuilder<SearchApplicationSearchRequest>> fn, Class<TDocument> tDocumentClass) Run a search application search.final <TDocument>
SearchApplicationSearchResponse<TDocument>search
(Function<SearchApplicationSearchRequest.Builder, ObjectBuilder<SearchApplicationSearchRequest>> fn, Type tDocumentType) Run a search application search.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchSearchApplicationClient
-
ElasticsearchSearchApplicationClient
public ElasticsearchSearchApplicationClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchSearchApplicationClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchSearchApplicationClient>
-
delete
public DeleteSearchApplicationResponse delete(DeleteSearchApplicationRequest request) throws IOException, ElasticsearchException Delete a search application.Remove a search application and its associated alias. Indices attached to the search application are not removed.
- Throws:
IOException
ElasticsearchException
- See Also:
-
delete
public final DeleteSearchApplicationResponse delete(Function<DeleteSearchApplicationRequest.Builder, ObjectBuilder<DeleteSearchApplicationRequest>> fn) throws IOException, ElasticsearchExceptionDelete a search application.Remove a search application and its associated alias. Indices attached to the search application are not removed.
- Parameters:
fn
- a function that initializes a builder to create theDeleteSearchApplicationRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteBehavioralAnalytics
public DeleteBehavioralAnalyticsResponse deleteBehavioralAnalytics(DeleteBehavioralAnalyticsRequest request) throws IOException, ElasticsearchException Delete a behavioral analytics collection. The associated data stream is also deleted.- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteBehavioralAnalytics
public final DeleteBehavioralAnalyticsResponse deleteBehavioralAnalytics(Function<DeleteBehavioralAnalyticsRequest.Builder, ObjectBuilder<DeleteBehavioralAnalyticsRequest>> fn) throws IOException, ElasticsearchExceptionDelete a behavioral analytics collection. The associated data stream is also deleted.- Parameters:
fn
- a function that initializes a builder to create theDeleteBehavioralAnalyticsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
get
public GetSearchApplicationResponse get(GetSearchApplicationRequest request) throws IOException, ElasticsearchException Get search application details.- Throws:
IOException
ElasticsearchException
- See Also:
-
get
public final GetSearchApplicationResponse get(Function<GetSearchApplicationRequest.Builder, ObjectBuilder<GetSearchApplicationRequest>> fn) throws IOException, ElasticsearchExceptionGet search application details.- Parameters:
fn
- a function that initializes a builder to create theGetSearchApplicationRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getBehavioralAnalytics
public GetBehavioralAnalyticsResponse getBehavioralAnalytics(GetBehavioralAnalyticsRequest request) throws IOException, ElasticsearchException Get behavioral analytics collections.- Throws:
IOException
ElasticsearchException
- See Also:
-
getBehavioralAnalytics
public final GetBehavioralAnalyticsResponse getBehavioralAnalytics(Function<GetBehavioralAnalyticsRequest.Builder, ObjectBuilder<GetBehavioralAnalyticsRequest>> fn) throws IOException, ElasticsearchExceptionGet behavioral analytics collections.- Parameters:
fn
- a function that initializes a builder to create theGetBehavioralAnalyticsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getBehavioralAnalytics
public GetBehavioralAnalyticsResponse getBehavioralAnalytics() throws IOException, ElasticsearchExceptionGet behavioral analytics collections.- Throws:
IOException
ElasticsearchException
- See Also:
-
list
Get search applications. Get information about search applications.- Throws:
IOException
ElasticsearchException
- See Also:
-
list
public final ListResponse list(Function<ListRequest.Builder, ObjectBuilder<ListRequest>> fn) throws IOException, ElasticsearchExceptionGet search applications. Get information about search applications.- Parameters:
fn
- a function that initializes a builder to create theListRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
list
Get search applications. Get information about search applications.- Throws:
IOException
ElasticsearchException
- See Also:
-
postBehavioralAnalyticsEvent
public PostBehavioralAnalyticsEventResponse postBehavioralAnalyticsEvent(PostBehavioralAnalyticsEventRequest request) throws IOException, ElasticsearchException Create a behavioral analytics collection event.- Throws:
IOException
ElasticsearchException
- See Also:
-
postBehavioralAnalyticsEvent
public final PostBehavioralAnalyticsEventResponse postBehavioralAnalyticsEvent(Function<PostBehavioralAnalyticsEventRequest.Builder, ObjectBuilder<PostBehavioralAnalyticsEventRequest>> fn) throws IOException, ElasticsearchExceptionCreate a behavioral analytics collection event.- Parameters:
fn
- a function that initializes a builder to create thePostBehavioralAnalyticsEventRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
put
Create or update a search application.- Throws:
IOException
ElasticsearchException
- See Also:
-
put
public final PutResponse put(Function<PutRequest.Builder, ObjectBuilder<PutRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update a search application.- Parameters:
fn
- a function that initializes a builder to create thePutRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
putBehavioralAnalytics
public PutBehavioralAnalyticsResponse putBehavioralAnalytics(PutBehavioralAnalyticsRequest request) throws IOException, ElasticsearchException Create a behavioral analytics collection.- Throws:
IOException
ElasticsearchException
- See Also:
-
putBehavioralAnalytics
public final PutBehavioralAnalyticsResponse putBehavioralAnalytics(Function<PutBehavioralAnalyticsRequest.Builder, ObjectBuilder<PutBehavioralAnalyticsRequest>> fn) throws IOException, ElasticsearchExceptionCreate a behavioral analytics collection.- Parameters:
fn
- a function that initializes a builder to create thePutBehavioralAnalyticsRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
renderQuery
public RenderQueryResponse renderQuery(RenderQueryRequest request) throws IOException, ElasticsearchException Render a search application query. Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. If a parameter used in the search template is not specified inparams
, the parameter's default value will be used. The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API.You must have
read
privileges on the backing alias of the search application.- Throws:
IOException
ElasticsearchException
- See Also:
-
renderQuery
public final RenderQueryResponse renderQuery(Function<RenderQueryRequest.Builder, ObjectBuilder<RenderQueryRequest>> fn) throws IOException, ElasticsearchExceptionRender a search application query. Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. If a parameter used in the search template is not specified inparams
, the parameter's default value will be used. The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API.You must have
read
privileges on the backing alias of the search application.- Parameters:
fn
- a function that initializes a builder to create theRenderQueryRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public <TDocument> SearchApplicationSearchResponse<TDocument> search(SearchApplicationSearchRequest request, Class<TDocument> tDocumentClass) throws IOException, ElasticsearchException Run a search application search. Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. Unspecified template parameters are assigned their default values if applicable.- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public final <TDocument> SearchApplicationSearchResponse<TDocument> search(Function<SearchApplicationSearchRequest.Builder, ObjectBuilder<SearchApplicationSearchRequest>> fn, Class<TDocument> tDocumentClass) throws IOException, ElasticsearchExceptionRun a search application search. Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. Unspecified template parameters are assigned their default values if applicable.- Parameters:
fn
- a function that initializes a builder to create theSearchApplicationSearchRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public SearchApplicationSearchResponse<Void> search(SearchApplicationSearchRequest request) throws IOException, ElasticsearchException Overload ofsearch(SearchApplicationSearchRequest, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.- Throws:
IOException
ElasticsearchException
-
search
public final SearchApplicationSearchResponse<Void> search(Function<SearchApplicationSearchRequest.Builder, ObjectBuilder<SearchApplicationSearchRequest>> fn) throws IOException, ElasticsearchExceptionOverload ofsearch(Function, Class)
, where Class is defined as Void, meaning the documents will not be deserialized.- Throws:
IOException
ElasticsearchException
-
search
public <TDocument> SearchApplicationSearchResponse<TDocument> search(SearchApplicationSearchRequest request, Type tDocumentType) throws IOException, ElasticsearchException Run a search application search. Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. Unspecified template parameters are assigned their default values if applicable.- Throws:
IOException
ElasticsearchException
- See Also:
-
search
public final <TDocument> SearchApplicationSearchResponse<TDocument> search(Function<SearchApplicationSearchRequest.Builder, ObjectBuilder<SearchApplicationSearchRequest>> fn, Type tDocumentType) throws IOException, ElasticsearchExceptionRun a search application search. Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. Unspecified template parameters are assigned their default values if applicable.- Parameters:
fn
- a function that initializes a builder to create theSearchApplicationSearchRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-