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 ListResponseGet 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 PutResponseCreate 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 RenderQueryResponseRender 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:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin 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:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
deleteBehavioralAnalytics
public DeleteBehavioralAnalyticsResponse deleteBehavioralAnalytics(DeleteBehavioralAnalyticsRequest request) throws IOException, ElasticsearchException Delete a behavioral analytics collection. The associated data stream is also deleted.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
get
public GetSearchApplicationResponse get(GetSearchApplicationRequest request) throws IOException, ElasticsearchException Get search application details.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
getBehavioralAnalytics
public GetBehavioralAnalyticsResponse getBehavioralAnalytics(GetBehavioralAnalyticsRequest request) throws IOException, ElasticsearchException Get behavioral analytics collections.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
getBehavioralAnalytics
public GetBehavioralAnalyticsResponse getBehavioralAnalytics() throws IOException, ElasticsearchExceptionGet behavioral analytics collections.- Throws:
IOExceptionElasticsearchException- See Also:
-
list
Get search applications. Get information about search applications.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
list
Get search applications. Get information about search applications.- Throws:
IOExceptionElasticsearchException- See Also:
-
postBehavioralAnalyticsEvent
public PostBehavioralAnalyticsEventResponse postBehavioralAnalyticsEvent(PostBehavioralAnalyticsEventRequest request) throws IOException, ElasticsearchException Create a behavioral analytics collection event.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
put
Create or update a search application.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-
putBehavioralAnalytics
public PutBehavioralAnalyticsResponse putBehavioralAnalytics(PutBehavioralAnalyticsRequest request) throws IOException, ElasticsearchException Create a behavioral analytics collection.- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- 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
readprivileges on the backing alias of the search application.- Throws:
IOExceptionElasticsearchException- 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
readprivileges on the backing alias of the search application.- Parameters:
fn- a function that initializes a builder to create theRenderQueryRequest- Throws:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException
-
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:
IOExceptionElasticsearchException
-
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:
IOExceptionElasticsearchException- 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:
IOExceptionElasticsearchException- See Also:
-