我只能在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')"
}
}
]
提前谢谢!
暂无答案!
目前还没有任何答案,快来回答吧!