My problem is really a basic example of using labels in Neo4j 2.0.M5. I try to drop all nodes and relationships, then I drop old 'Person' index, then I create a new 'Person' index based on 'name' property, then I create a node labeled 'Person' with name 'John Doe', to finally retrieve this node.
Cypher:
START n=node(*) MATCH n-[r?]-m WITH n, r DELETE n, r
DROP INDEX ON :Person(name)
CREATE INDEX ON :Person(name)
CREATE (n:Person {name:'Jhon Doe'})
start n=node:Person(name='Jhon Doe') return n
All works well, except at the end, when I try to retrieve my node. Neo4j throws an error :
Index `Person` does not exist
I try without creating the index, but it also doesn't work.
It's a really simple case, do you see the problem ?