I just push text corpus into Neo4j database. When I execute MATCH (n) RETURN n
Cypher query, it returns multiple nodes with the same name. how can I merge these nodes as one?
相关问题
- Can I parameterize labels and properties on CREATE
- run neo4j with docker-compose - neo4j not accessib
- How to create multiple nodes with cypher in neo4j
- Order by relationship properties neo4j
- How can I specify which relationship type to use a
相关文章
- Neo4j DATE Data Types
- How can I get the number of nodes of a Neo4j graph
- What is the fully qualified path of the Neo4j data
- Neo4j in Azure mobile services
- NoClassDefFoundError when executing a Neo4j Cypher
- java.lang.ClassNotFoundException Every time I chan
- Updating the entire value of vertex property with
- Spring data neo4j aspectJ setup error
Your name values have different values because of upper and lower case letters ("Java" and "java" are different).
I reproduced your scenario creating a sample data set:
The above query will produce this graph:
To merge all "Java" nodes you can use the APOC Procedure
apoc.refactor.mergeNodes(nodes)
. Running the following query:Will update your graph to: