java - Neo4j Spring Data example missing annotation @Indexed -


trying run neo4j spring data example on http://projects.spring.io/spring-data-neo4j/

<dependencies>     <dependency>         <groupid>org.springframework.data</groupid>         <artifactid>spring-data-neo4j</artifactid>         <version>4.1.2.release</version>     </dependency> </dependencies> 

and

@nodeentity public class movie {    @graphid long id;    @indexed(type = fulltext, indexname = "search")   string title;    person director;    @relatedto(type="acts_in", direction = incoming)   set<person> actors;    @relatedtovia(type = "rated")   iterable<rating> ratings;    @query("start movie=node({self}) match            movie-->genre<--similar return similar")   iterable<movie> similarmovies; } 

but @indexed(type = fulltext, indexname = "search") not seem exist in <artifactid>spring-data-neo4j</artifactid>
have add else pom ? or deprecated , if how should it?

@indexed present in sdn 3, not anymore in sdn 4. have manage indices , constraints yourself, using cypher queries.

shameless plug: can use liquigraph manage migrations.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -