diff --git a/vector-stores/spring-ai-neo4j-store/src/main/java/org/springframework/ai/vectorstore/neo4j/Neo4jVectorStore.java b/vector-stores/spring-ai-neo4j-store/src/main/java/org/springframework/ai/vectorstore/neo4j/Neo4jVectorStore.java index c9b915f686d..269d85346b3 100644 --- a/vector-stores/spring-ai-neo4j-store/src/main/java/org/springframework/ai/vectorstore/neo4j/Neo4jVectorStore.java +++ b/vector-stores/spring-ai-neo4j-store/src/main/java/org/springframework/ai/vectorstore/neo4j/Neo4jVectorStore.java @@ -207,12 +207,7 @@ public void doAdd(List documents) { var statement = """ UNWIND $rows AS row MERGE (u:%s {%2$s: row.id}) - ON CREATE SET u += row.properties - ON MATCH - SET u = {} - SET u.%2$s = row.id, - u += row.properties WITH row, u CALL db.create.setNodeVectorProperty(u, $embeddingProperty, row[$embeddingProperty]) """.formatted(this.label, this.idProperty);