简体   繁体   English

创建索引返回“什么都没有发生”

[英]create index return “nothing happened”

When I execute the query "CREATE INDEX ON :Label(propertie);", the index is not created. 当我执行查询“ CREATE INDEX ON:Label(propertie);”时,不会创建索引。

I tried on neo4jshell and browser (v3.0.4). 我尝试了neo4jshell和浏览器(v3.0.4)。

On neo4jshell, it said : 在neo4jshell上,它说:

+-------------------+
| No data returned. |
+-------------------+
<Nothing happened>31 ms 

And the command "index --indexes" always returns : 并且命令“ index --indexes”始终返回:

neo4j-sh (?)$ index --indexes
Node indexes:

Relationship indexes:

Thanks for your help. 谢谢你的帮助。

The index command in the shell returns legacy indexes (see help index ), not the schema indexes introduced with neo4j 2. shell中的index命令返回旧索引(请参阅help index ),而不是neo4j 2引入的模式索引。

Try schema instead, this shows the new constraints/indexes. 尝试使用schema ,这将显示新的约束/索引。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM