Spring Data Repos未选择Neo4j原生api数据

时间:2012-07-21 19:45:27

标签: spring neo4j spring-data spring-data-neo4j

我已经使用原生api将一些数据泵入neo4j实例。 Spring数据图支持的应用程序使用相同的实例。存储库无法找到数据。我假设由于索引和/或缺少属性,这是一个问题。

当抽取数据时,设置以下属性:

node.setProperty("__type__", "com.x.x.Class");

索引设置如下:

Index<Node> typeIndex = indexManager.forNodes("__types__");
typeIndex.add(node, "className", "com.x.x.Class");

感谢任何线索/帮助。

1 个答案:

答案 0 :(得分:0)

imamc,

如果您发布了一个可以重现问题的简单测试,我会很感激,最好是https://groups.google.com/forum/?fromgroups#!forum/neo4j

但是在手边,你所说的有道理,我没有任何其他提示。但是如果我们得到一些代码/测试,我们可以提供帮助。

拉​​塞