Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-12-2019 10:50 AM
Hi there,
Our graph db contains a unique index for name
field. But there are a lot of duplicates because we didn't normalize data earlier.
Can we merge this duplicate nodes if their name's are matching (case insensitively)?
12-12-2019 01:50 PM
Apoc has the function you're after - http://neo4j-contrib.github.io/neo4j-apoc-procedures/3.5/graph-refactoring/merge-nodes/
You can merge a list of nodes onto the first one in the list.
All relationships are merged onto that node too. You can specify the merge behavior for properties globally and/or individually.
To run it in a case-insensitive way, you might try combining this with the toUpper or toLower string functions - https://neo4j.com/docs/cypher-manual/current/functions/string/
All the sessions of the conference are now available online