SDN neo4j 3.0 Release Index Strategy

北战南征 提交于 2019-12-12 17:40:59

问题


Since I updated from RC1 to RELEASE I get this exception:

org.springframework.data.mapping.model.MappingException: No index name allowed on label based indexes

which means @Index will now default to Label and not Simple indexing.

How do I specify the labels for each @NodeEntity ? From this link I think I should use @Labels but is this official ?

Considering issue DATAGRAPH-433 will unique indexes use the old index strategy?

The spring data neo4j documentation doesn't offer any clue.


回答1:


You can either just remove the indexName from your @Indexed annotations.

Or you add @Indexed(indexType = IndexType.SIMPLE) for the old indexes.

You have to manually set that for unique indexes too. I have a blog post in writing for SDN 3.0. To be published some time tomorrow.



来源:https://stackoverflow.com/questions/22022691/sdn-neo4j-3-0-release-index-strategy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!