Graph Relations not displayed

Hi Team,

I have installed Elastic Search elasticsearch-7.11.1 and Kibana on Windows 10 machine. I was exploring graph functionality using a Trial license wherein I am trying to view the relationships among the different nodes. I have loaded an index with the following sample data which has just two attributes "Source" and "Destination" and trying to plot it on a graph.

When I try accessing the URL http://localhost:5601/app/graph and visualize the index there is a connection shown only between Source and Destination1 even though there should have been a connection between Source and Destinatio 2 and Destination 4.

Noticed that if the number of records with a specific relationship is more than 4 then only graph showing the relation.

Could you please explain why there are no connections shown for the other nodes?

{
  "took" : 42,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 7,
      "relation" : "eq"
    },
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "policies3",
        "_type" : "_doc",
        "_id" : "1",
        "_score" : 1.0,
        "_source" : {
          "Source" : "Source",
          "Destination" : "Destination 1"
        }
      },
      {
        "_index" : "policies3",
        "_type" : "_doc",
        "_id" : "2",
        "_score" : 1.0,
        "_source" : {
          "Source" : "Source",
          "Destination" : "Destination 4"
        }
      },
      {
        "_index" : "policies3",
        "_type" : "_doc",
        "_id" : "3",
        "_score" : 1.0,
        "_source" : {
          "Source" : "Source",
          "Destination" : "Destination 1"
        }
      },
      {
        "_index" : "policies3",
        "_type" : "_doc",
        "_id" : "5",
        "_score" : 1.0,
        "_source" : {
          "Source" : "Source",
          "Destination" : "Destination 1"
        }
      },
      {
        "_index" : "policies3",
        "_type" : "_doc",
        "_id" : "7",
        "_score" : 1.0,
        "_source" : {
          "Source" : "Source",
          "Destination" : "Destination 1"
        }
      },
      {
        "_index" : "policies3",
        "_type" : "_doc",
        "_id" : "6",
        "_score" : 1.0,
        "_source" : {
          "Source" : "Source",
          "Destination" : "Destination 2"
        }
      },
      {
        "_index" : "policies3",
        "_type" : "_doc",
        "_id" : "8",
        "_score" : 1.0,
        "_source" : {
          "Source" : "Source",
          "Destination" : "Destination 2"
        }
      }
    ]
  }
}

Hi @Pruthvi_Raj_Venkates

Welcome to Elastic Community!

I can suggest reading Graph intro in order to better understand how you can use it and how it works. Then you can double check that you created graph properly following the guide

It might be easier to play around with existing graph coming with Kibana sample data, its ecommerce one:

If your own graph still not working, please provide your data set sample and search query you are using.

Regards, Dzmitry

Many Thanks @Dzmitry , I am able to display the graph now. The issue was that "Certainty - The minimum number of documents before introducing a related term." was not set in the graph settings page. After setting it to 1 the graph is now visible with the relations.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.