On Tue, Nov 15, 2011 at 3:50 AM, gsingh93 <gsingh_2...@yahoo.com> wrote:
> > > > What version of Neo4j are you using? This query is valid syntax for 1.4.x > > and 1.5.M01. > > > > I'm using version 1.4.1 If possible, you should upgrade to 1.5. > > > Later you would want to use: > > > > > start a=node:nodeIndex(identifier='0') return a > > > > I tried that and got the error: > > org.neo4j.cypher.SyntaxException: `<' expected but `n' found > Yes, that's the old version. Upgrade, or use the old Cypher syntax<http://docs.neo4j.org/chunked/1.4.1/cypher-query-lang.html> . And if you do in Java: > > Node node = > > gds.index().forNodes("nodeIndex").get("identifier","0").getSingle() > > > > then node is the user you want? > > > > Yes, that command gives me the user I want. How would I do that in > cypher? > The query above is correct, you version is off. > > I'm not sure if that makes a difference, did you index your identifiers > as > > Strings or numeric values? > > > I set the properties of the node as byte [ ], and then the properties are > auto-indexed. Why are you storing byte arrays? You know that you can store numbers and strings, right? Byte arrays are hard to query from Cypher. Andrés _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user