# Would it be possible for Graph to detect connections between document entities?

**URL:** <https://discuss.elastic.co/t/would-it-be-possible-for-graph-to-detect-connections-between-document-entities/61460>\
**Category:** Kibana\
**Tags:** elastic-stack-graph\
**Created:** [September 25, 2016, 7:38am UTC](https://discuss.elastic.co/t/would-it-be-possible-for-graph-to-detect-connections-between-document-entities/61460 "2016-09-25T07:38:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michelmooren](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@michelmooren](https://discuss.elastic.co/u/michelmooren)\
**Post date:** [September 25, 2016, 7:38am UTC](https://discuss.elastic.co/t/would-it-be-possible-for-graph-to-detect-connections-between-document-entities/61460/1 "2016-09-25T07:38:28Z")

</div>

For instance in the [last.fm](http://last.fm) example, the document entity is the user. If user A and user B (amongst others) both like the same 5 bands, then Graph will show user A connected to these 5 bands and user B connected to these same 5 bands, so there is an implicit connection between user A and user B. Since it is also known how many bands user A likes and how many bands user B likes, all the necessary information is their to build a (weighted) connection. Could this connection also be made explicit?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [September 25, 2016, 8:43am UTC](https://discuss.elastic.co/t/would-it-be-possible-for-graph-to-detect-connections-between-document-entities/61460/2 "2016-09-25T08:43:38Z")

</div>

Given the structure of the docs in this example the best way to find the most-related user to a given user would be to use a "more like this" query not a graph query.

I think a graph where nodes are users would be less cohesive than a graph where nodes are bands. Users tend to have varied tastes and when chaining userA-\>userB-\>userC you can quickly go "off the scent" whereas individual bands tend to be more single-focused in their genre and reinforced in their connections by the listening habits of thousands.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:42pm UTC](https://discuss.elastic.co/t/would-it-be-possible-for-graph-to-detect-connections-between-document-entities/61460/3 "2017-07-06T13:42:24Z")

</div>


