Re: [Neo4j] Error in getting embedded neo4j database in java application

2018-04-30 Thread 'Michael Hunger' via Neo4j
Only one process can use the same database. If you use neo4j embedded you have to make sure to have all dependencies provided with your build tool, e.g. maven or gradle. so use `neo4j:neo4j.3.3.5` as the proper top-level dependency which includes all the transitive ones. Michael On Fri, Apr 27,

Re: [Neo4j] Java and loop relationships

2018-04-30 Thread 'Michael Hunger' via Neo4j
Your startNode is the parent again. You have to access the endNode to get the sons. and your forEach gets passed in the relationships, then you can access either start/end-nodes, types or properties. If you're unsure about Java8 streams, there are tons of materials to look up syntax for forEach a

[Neo4j] Java and loop relationships

2018-04-30 Thread developerlearn999
i am trying to do : Node node1= parentNode.getSingleRelationship(RelationshipType.withName("SON"), Direction.OUTGOING).getStartNode(); node1.getRelationships(RelationshipType.withName("SON"),Direction.OUTGOING).forEach(Relationship *xxx *: *yyy*){}; the part that i am missing is *xxx *: *yyy*

[Neo4j] Error in getting embedded neo4j database in java application

2018-04-30 Thread chahal . arora
Hi, When I am trying to embed a neo4j database in my java application. I have a neo4j database and verified it by running it on neo4j server. But I am having problems in using it in my java application. While debugging I observed that the debugger goes to line 79 of class LuceneIndexImplement

[Neo4j] Re: How does PathExpanderBuilder.addNodeFilter work?

2018-04-30 Thread developerlearn999
Hi, i am facing the same issue. i try to filter out by date time property which is in format of MMddHHmmss but when i try to use addNodeFilter PathExpanderBuilder p = PathExpanderBuilder.allTypes(Direction.OUTGOING).add(RelDirectionTypes.NEXT_NODE).addNodeFilter(n -> newNodeTS.compareTo(Lon