I am trying to build a recommendation engine using neo4j and use spring-data-neo4j as the persistence layer. i find that the cypher query executed by spring data gives results but with duplicate objects, the same query executed on the neo4j browser with the same data set produces the expected results.
Here is the query that gets executed (I got this by enabling the debug) MATCH (u:User)-[r:RATED]-(m:Movie)-[:HAS_MOVIE]-(g:Genre)-[:HAS_MOVIE]-(reco:Movie) where u.login="mickey" and r.stars >= 4 return reco order by reco.stars desc SKIP 0 LIMIT 21
I know a lot depends on my data, etc. But since I see different results for same query on neo4j browser vs spring-data-neo4j, my first suspicion is spring-data.
Has anyone else seen this behaviour, is there any other way I can confirm spring-data-neo4j is returning incorrect results?
thanks