Class ElasticsearchGraphClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchGraphClient>
co.elastic.clients.elasticsearch.graph.ElasticsearchGraphClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchGraphClient
extends ApiClient<ElasticsearchTransport,ElasticsearchGraphClient>
Client for the graph namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchGraphClient
(ElasticsearchTransport transport) ElasticsearchGraphClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionexplore
(ExploreRequest request) Explore graph analytics.final ExploreResponse
Explore graph analytics.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
-
ElasticsearchGraphClient
-
ElasticsearchGraphClient
public ElasticsearchGraphClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchGraphClient>
-
explore
Explore graph analytics. Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. An initial request to the_explore
API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. Subsequent requests enable you to spider out from one more vertices of interest. You can exclude vertices that have already been returned.- Throws:
IOException
ElasticsearchException
- See Also:
-
explore
public final ExploreResponse explore(Function<ExploreRequest.Builder, ObjectBuilder<ExploreRequest>> fn) throws IOException, ElasticsearchExceptionExplore graph analytics. Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. An initial request to the_explore
API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. Subsequent requests enable you to spider out from one more vertices of interest. You can exclude vertices that have already been returned.- Parameters:
fn
- a function that initializes a builder to create theExploreRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-