That came in 1.6.M03, see
http://docs.neo4j.org/chunked/snapshot/rest-api-unique-indexes.html
and http://components.neo4j.org/neo4j/1.6.M03/apidocs/org/neo4j/graphdb/index/Index.html#putIfAbsent%28T,%20java.lang.String,%20java.lang.Object%29
Cheers,
/peter neubauer
Google: neubauer.peter
Skype: peter.neubauer
Phone: +46 704 106975
LinkedIn: http://www.linkedin.com/in/neubauer
Twitter: @peterneubauer
Tungle: tungle.me/peterneubauer
brew install neo4j && neo4j start
heroku addons:add neo4j
Unique indexes are great to prevent duplicates being created but is there a suggested approach for identifying duplicates across the graph.E.g. with the movie graph if you don't implement unique indexes (because movies can have the same name) and two people create the same movie with the same actors is there a way to identify the duplication?Solr has MD5Signature, Lookup3Signature, TextProfileSignature algoritms for detecting duplicates but are there any examples of people using similar algorithms with Neo4j and the Lucene instance?Thanks,Rory
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group, send email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
"""start pos=node:node_auto_index(pos={pos})with count(pos) as existsposwhere existspos = 0create pos={pos:{pos}}with count(1) as dummystart pos=node:node_auto_index(pos={pos})create unique (pos)<-[:position]-(fen {fen:{fen}})set fen.score={score}"""
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
Unique indexes are great to prevent duplicates being created but is there a suggested approach for identifying duplicates across the graph.E.g. with the movie graph if you don't implement unique indexes (because movies can have the same name) and two people create the same movie with the same actors is there a way to identify the duplication?Solr has MD5Signature, Lookup3Signature, TextProfileSignature algoritms for detecting duplicates but are there any examples of people using similar algorithms with Neo4j and the Lucene instance?Thanks,Rory
On Saturday, 21 January 2012 06:37:28 UTC-3, Peter Neubauer wrote:
Example output - collected IDs that will be used in the next step:
Invalid input 'C': expected whitespace, an unsigned integer, a parameter or '*' (line 9, column 14) "START k=node(CommaSeparatedListOfIds)"