Cypher queries return nothing in the web admin console

85 views
Skip to first unread message

Luanne Coutinho

unread,
Feb 3, 2012, 5:05:54 AM2/3/12
to ne...@googlegroups.com
I must be doing something really stupid, but can't figure it out.
I'm using the Web Admin for neo4j 1.6 (Windows 7 Pro), and the only configuration I've changed is the path to the data store in neo4j-server.properties:
org.neo4j.server.database.location=C://neo4jdbs//domainModel

So, my cypher query returns nothing:

cypher> START a =  node(0)
cypher> RETURN a
cypher> 
cypher> start a = node(40)
cypher> return a
cypher> 
cypher>

but the node really exists as you can see from the http console:


http> get /db/data/node/40
==> 200 OK
==> {
==>   "outgoing_relationships" : "http://127.0.0.1:7474/db/data/node/40/relationships/out",
==>   "data" : {
==>     "dateOfBirth" : 276892200000,
==>     "id" : 185,
==>     "name" : "Luanne M",
==>     "gender" : "F",
==>     "personId" : 184
==>   },
==>   "traverse" : "http://127.0.0.1:7474/db/data/node/40/traverse/{returnType}",
==>   "all_typed_relationships" : "http://127.0.0.1:7474/db/data/node/40/relationships/all/{-list|&|types}",
==>   "property" : "http://127.0.0.1:7474/db/data/node/40/properties/{key}",
==>   "self" : "http://127.0.0.1:7474/db/data/node/40",
==>   "outgoing_typed_relationships" : "http://127.0.0.1:7474/db/data/node/40/relationships/out/{-list|&|types}",
==>   "properties" : "http://127.0.0.1:7474/db/data/node/40/properties",
==>   "incoming_relationships" : "http://127.0.0.1:7474/db/data/node/40/relationships/in",
==>   "extensions" : {
==>   },
==>   "create_relationship" : "http://127.0.0.1:7474/db/data/node/40/relationships",
==>   "paged_traverse" : "http://127.0.0.1:7474/db/data/node/40/paged/traverse/{returnType}{?pageSize,leaseTime}",
==>   "all_relationships" : "http://127.0.0.1:7474/db/data/node/40/relationships/all",
==>   "incoming_typed_relationships" : "http://127.0.0.1:7474/db/data/node/40/relationships/in/{-list|&|types}"
==> }

What's missing??

Thanks
Luanne

Michael Hunger

unread,
Feb 3, 2012, 6:49:05 AM2/3/12
to ne...@googlegroups.com
Could you check if that also fails in the HTTP console ?

  • http> POST /db/data/cypher { "query" : "start n=node(0) return ID(n)" }
  • ==> 200 OK
  • ==> {
  • ==>   "data" : [ [ 0 ] ],
  • ==>   "columns" : [ "ID(n)" ]
  • ==> }

Cheers

Michael

Andres Taylor

unread,
Feb 3, 2012, 7:30:58 AM2/3/12
to ne...@googlegroups.com
My guess is that you have run an older version, and that's what's cached in your browser. The console on Neo4j 1.6 looks like this:

neo4j-sh (0)$

The stuff you have pasted in looks like 1.5 something.

Try reloading the webadmin page.

Andrés

Luanne

unread,
Feb 3, 2012, 10:56:52 AM2/3/12
to ne...@googlegroups.com

Yup that was it, thanks!

Reply all
Reply to author
Forward
0 new messages