Creating a graph
The Graph API offers an alternative method for retrieving and summarizing data about the documents and keywords in your Elasticsearch index. Essentially, a graph represents a network of interconnected elements. In our context, this refers to a network of related keywords within the index.
Figure 7.1 – Vertices and edges in a graph in Kibana
The keywords that you wish to include in the graph are referred to as vertices. Each connection between two vertices represents a relationship. This relationship summarizes the documents that contain both of the terms associated with the vertices. The terms that have been indexed serve as the graph vertices. By utilizing Elasticsearch aggregations, the connections are generated dynamically. The API utilizes Elasticsearch relevance scoring to identify the most significant connections. This means that the same data structures and relevance-ranking tools used for text searches in Elasticsearch are...