lundi 14 avril 2014

How to change a nodes property based on one of its other properties in Neo4j


Vote count:

0




I just started using Neo4j server 2.0.1. I am having trouble with the writing a cypher script to change one of the nodes property to something based one of its already defined properties.


So if I created this node: CREATE (:Post {uname:'user1', content:'Bought a new pair of pants today', kw:''})


I want the the script to look at the content property and pick out the word "Bought" and set the kw property to that using a regular expression to pick out word(s) larger then five characters.


Any help would be greatly appreciated.



asked 22 secs ago






Aucun commentaire:

Enregistrer un commentaire