【发布时间】:2015-03-08 01:56:14
【问题描述】:
我对 neo4j 很陌生。我在 Windows 下运行 shell。 我创建了一个名为:user 的节点,并且我在 id 上有了索引。用户有 id 和 name 属性。
我创建了一个名为朋友的关系。 (user1, user2)
neo4j.properties 设置为:
# Enable auto-indexing for nodes, default is false
node_auto_indexing=true
# The node property keys to be auto-indexed, if enabled
node_keys_indexable=id
# Enable auto-indexing for relationships, default is false
relationship_auto_indexing=true
# The relationship property keys to be auto-indexed, if enabled
relationship_keys_indexable=user1,user2
我的问题是:
1- 当我输入: :schema ls 时,它显示:
Indexes
ON :User(id) ONLINE
No constraints
为什么不显示关系上的索引?
2- 如何使用 shell 手动创建关系索引?
【问题讨论】: