在neo4j graphaware mapping.json的elasticsearch中显示多个节点

qlzsbp2j  于 2021-06-14  发布在  ElasticSearch
关注(0)|答案(0)|浏览(162)

我只能在elasticsearch索引中显示一个默认节点类型。如何允许在elasticsearch中索引多个节点?我的mapping.json文件如下:

{​​​​​​​​
"defaults": {​​​​​​​​
"key_property": "uuid",
"nodes_index": "default-index-node",
"relationships_index": "default-index-relationship",
"include_remaining_properties": true
  }​​​​​​​​,

"node_mappings": [
    {​​​​​​​​
"condition": "hasLabel('A')",
"type": "A",
"index":"A-index",
"properties": {​​​​​​​​
"id": "getProperty('id')"
}​​​​​​​​
    }​​​​​​​​,
    {​​​​​​​​
"condition": "hasLabel('B')",
"type": "B",
"index":"B-index",
"properties": {​​​​​​​​
"id": "getProperty('id')"
      }​​​​​​​​
    }​​​​​​​​,
    {​​​​​​​​
"condition": "hasLabel('C')",
"type": "C",
"index":"C-index",
"properties": {​​​​​​​​
"id": "getProperty('id')"
      }​​​​​​​​
    }​​​​​​​​
  ]

提前谢谢!

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题