graphaware / neo4j-to-elasticsearch

GraphAware Framework Module for Integrating Neo4j with Elasticsearch
261 stars 57 forks source link

[FeatureRequest] Inheritance in mapping definitions #116

Closed ikwattro closed 3 years ago

ikwattro commented 6 years ago

Ability to have mapping inheritance, for example :

"node_mappings": [
    {
      "abstract":true,
      "name":"all-parent",
      "condition": "allNodes()",
      "properties": {
        "_labels": "getLabels()"
      }
    },
    {
      "inherit":"all-parent",
      "condition": "hasLabel('Person)",
      "index": "persons",
      "type": "persons",
      "properties": {
        "name": "getProperty('firstName') + ' ' + getProperty('lastName')"
      }
    }
  ]