爲什麼Spring Data Neo4j 3.1.x中的NamedIndexRepository
被刪除?有什麼辦法創造__types__
索引創建CYPHER這樣的查詢:SDN:Spring數據neo4j中__types__的替換是什麼3.1.4
Start root=node:__types__(className="a.b.c.XYZ") return root
好像它不再在新的SDN支持。任何其他方面來實現這一目標?
更新
這link顯示,我們可以選擇使用傳統的索引策略。謝謝stefan和tstorm。現在又出現了問題,如果不使用典型的__types__(className="")
,那麼會出現任何性能問題,如果我使用這樣的話:Start root=node(*)....
?
您可能會從我關於SDN 3遷移的博客文章中受益:http://javaprogress.wordpress.com/2014/05/16/migrating-to-spring-data-neo4j-3-0/ – tstorms 2014-09-22 08:47:03
謝謝@tstorms :)幫助我。 TypeRepresentationStrategyFactory是解決方案。我也發現了這個http://comments.gmane.org/gmane.comp.db.neo4j.user/19065,後面跟着這個http://docs.spring.io/spring-data/data-neo4j/docs/ 3.2.0.RELEASE/reference/html /#reference_programming-model_typerepresentationstrategy – agpt 2014-09-22 10:14:11