Elasticsearch & X-Pack: how to get vertices/connections from nested documents Elasticsearch & X-Pack: how to get vertices/connections from nested documents elasticsearch elasticsearch

Elasticsearch & X-Pack: how to get vertices/connections from nested documents


The following question was discussed here:https://discuss.elastic.co/t/elasticsearch-x-pack-how-to-get-vertices-connections-from-nested-documents/88709

quote from Mark_Harwood - Elastic Team Member:

Unfortunately Graph does not support nested documents but you can use copy_to in your mappings to put the person data in an indexed field in the containing root document.

I can see that you have the classic problem of "computers-want-IDs-but-people-want-labels" and have both these values. In Graph (and arguably the rest of Kibana too) I suggest you use tokens that combine IDs for uniqueness' sake and names for readability by humans.

The copy_to and IDs-and-labels tips are part of the modelling suggestions in my elasticon talk this year: https://www.elastic.co/elasticon/conf/2017/sf/getting-your-data-graph-ready 3