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