Trying out the latest Neo4j 2.0 M01. I also Downloaded the full cinecast graph.db and configured it to work with 2.0 store according to the great video tutorial by Michael, see here: http://vimeo.com/63707662
I would like to get familiar with labels so my idea was to add some labels to some nodes being index as User,Person.
start n=node:Person("id:") set n:Humans return count ();
That worked, it added labels to all nodes being indexed (but i cant see it visually in the web console..but anyway it is there when query for it)
However this doesn't work:
neo4j-sh (0)$ start n=node:Person("id:*") match n where ID(n)>700 and ID(n)<710 set n:Journalist return n;
ResourceAcquisitionFailedException: The transaction is marked for rollback only
Two problems: is there today any typecast function string to int? The ID(n) was the only thing i could come up with to update partial nodes of the index since id,names etc are strings.
And secondly why doesnt it set a Journalist label onto the node group above? http://docs.neo4j.org/chunked/2.0.0-M01/query-set.html#set-set-a-label-on-a-node
Als,Can Labels be multiple word like:
start a=node(1,2,3,4)
match a
where a.name='Anders'
set a:helicopter pilot
return a
Error: expected valid query body "set a:helicopter pilot "
And finally, in the Neo4j api docs when trying out the queries there is something with the node(0) root that doesn't work, following is a valid query right (at least useful)?
start a=node(*)
match a
where a.name='Anders'
return a
Error: org.neo4j.cypher.EntityNotFoundException: The property 'name' does not exist on Node[0]
Thank you!