如何使用Cypher查询语言在已创建的节点上创建索引,而不在Neo4j中使用标签。我希望手动索引不自动索引。
我输入了查询
CREATE INDEX ON :name(name);
并获取
SyntaxException: string matching regex `$' expected but `O' found
==>
==> Think we should have better error message here? Help us by sending this query to cypher@neo4j.org.
==>
==> Thank you, the Neo4j Team.
答案 0 :(得分:3)
假设您没有使用2.0。
您无法使用Cypher创建索引。您必须通过api(http://docs.neo4j.org/chunked/stable/indexing-create.html)或REST(http://docs.neo4j.org/chunked/stable/rest-api-indexes.html)
手动创建它