What version of Neo4j are you using? This query is valid syntax for 1.4.x and 1.5.M01.
Later you would want to use: > start a=node:nodeIndex(identifier='0') return a And if you do in Java: Node node = gds.index().forNodes("nodeIndex").get("identifier","0").getSingle() then node is the user you want? I'm not sure if that makes a difference, did you index your identifiers as Strings or numeric values? Cheers Michael Am 14.11.2011 um 03:20 schrieb Gulshan Singh: > Thanks, Cypher is pretty much what I was looking for. I'm a new user with > neo4j, so I'm a little confused on how to integrate it with my application. > > I need to get a user from an index. This is how I've tried to do it, > > Query query = parser.parse("start a=(nodeIndex, identifier, '0') return a"); > ExecutionResult result = new ExecutionEngine(graphDb).execute(query); > > a returns with no nodes. I am positive that a node with an identifier of 0 > was added to my index and it is indexed properly (I can grab that user in > Java from the index). This identifier is different than the neo4j default > ids. > > > On Sat, Nov 12, 2011 at 9:05 AM, D. Frej <dieter_f...@gmx.net> wrote: > >> what about using e.g. a cypher query to get only thow nodes that have a >> relationship of RelType in between? What that be an option? >> >> >> >> Am 12.11.2011 02:04, schrieb gsingh93: >>> I have two nodes, NodeA and NodeB, that are related by the relationship >> of >>> type RelType. Is there a way I can confirm that these two nodes have this >>> relationship? At the moment, I have to create an Iterable of >> relationships >>> of that type connected to NodeA using getRelationships(RelType), and >> then I >>> have to loop through each relationship and check the other node to see >> if at >>> least one matches NodeB. This seems very inefficient to me. I'm hoping >> there >>> is a built in method to check this for me, although I couldn't find one. >> I'm >>> using Java. >>> >>> -- >>> View this message in context: >> http://neo4j-community-discussions.438527.n3.nabble.com/Confirming-existence-of-relationship-between-two-nodes-tp3501458p3501458.html >>> Sent from the Neo4j Community Discussions mailing list archive at >> Nabble.com. >>> _______________________________________________ >>> Neo4j mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >>> >> >> _______________________________________________ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user