java - How to ensure uniqueness in Labeled index in neo4j -


how can ensure put if absent /create unique functionality while creating nodes using labeled indexes in core java api? earlier index index manager , fire putifabsent. after create label , index it, lets user label userid indexed property, cannot index used to. method graphdb.index().existsfornodes("user") returns false.

this looks merge in cypher not exposed in java api, afaik
http://docs.neo4j.org/chunked/snapshot/query-merge.html#merge-merge-single-node-with-properties

if need 1 please open issue on github https://github.com/neo4j/neo4j/issues


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)