Files
elasticsearch-js/docs/reference-graph-explore.asciidoc
2024-12-05 14:46:52 -06:00

84 lines
4.2 KiB
Plaintext

[[reference-graph-explore]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
[[client.graph.explore]]
=== client.graph.explore
Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index.
{ref}/graph-explore-api.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(GraphExploreRequest, options?): Promise<GraphExploreResponse>
----
[discrete]
==== Request
[pass]
++++
<pre>
++++
interface GraphExploreRequest extends <<RequestBase>> {
index: <<Indices>>
routing?: <<Routing>>
timeout?: <<Duration>>
connections?: <<GraphHop>>
controls?: <<GraphExploreControls>>
query?: <<QueryDslQueryContainer>>
vertices?: <<GraphVertexDefinition>>[]
}
[pass]
++++
</pre>
++++
[discrete]
==== Response
[pass]
++++
<pre>
++++
interface GraphExploreResponse {
connections: <<GraphConnection>>[]
failures: <<ShardFailure>>[]
timed_out: boolean
took: <<long>>
vertices: <<GraphVertex>>[]
}
[pass]
++++
</pre>
++++