elasticsearch 在neo4j graphaware mapping.json的elasticsearch中显示多个节点
我只能在elasticsearch索引中显示一种默认节点类型。如何允许在elasticsearch中为多个节点编制索引?我的mapping.json文件如下:elasticsearch 在neo4j graphaware mapping.json的elasticsearch中显示多个节点,elasticsearch,neo4j,graphaware,elasticsearch,Neo4j,Graphaware,我只能在elasticsearch索引中显示一种默认节点类型。如何允许在elasticsearch中为多个节点编制索引?我的mapping.json文件如下: { "defaults": { "key_property": "uuid", "nodes_index": "default-index-node", "relationships_index&q
{
"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')"
}
}
]
提前谢谢你