【发布时间】:2019-03-06 17:08:14
【问题描述】:
我想批量删除所有使用 cypher 存在的索引,可以这样做吗?我正在使用 neo4j 3.4.7。
DROP INDEX ON :Label(attributename)
如果我在稍后阶段创建相同的索引,它会替换现有索引吗?
【问题讨论】:
-
StackOverflow: Neo4j how to drop all constraints 的解决方案和最后的解决方案StackOverflow: delete multiple indexes via java 可能会对您有所帮助。
-
如果您(重新)创建一个相同的索引,您不会收到任何错误,并且不会触及现有的索引。见StackOverflow: create index on when the index already exists in Neo4j。
标签: neo4j cypher spring-data-neo4j