Reputation: 1609
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.
Upvotes: 2
Views: 335
Reputation: 41676
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.
Upvotes: 1