Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top