1

I just want to clarify of what I read in the Spring Data Neo4j 4.0.0 documentation. So, the provided way to configure index & unique constraint is just by defining it directly in the web console using Cypher query, and no more inside the application (like what @indexing tag does previously). Is it correct?

Thank you in advance and your response would be really appreciated!

4

2 回答 2

2

这是正确的。索引维护和配置不是 OGM 或 Spring Data 的责任。它可以按照您所说的通过 shell 进行配置,或者您可以将 Session/Neo4jTemplate.execute 与您的 Cypher 语句一起使用。

于 2015-05-16T10:39:53.353 回答
1

在您的数据库中设置时,Cypher 会自动使用 Neo4j 的模式索引。Spring Data Neo4j(版本 4)不提供开箱即用的处理设置的工具。

它在官方文档中明确提到,

于 2016-05-31T21:49:44.883 回答