Skip to content

Commit

Permalink
Neo4j module: remove unnecessary property removal.
Browse files Browse the repository at this point in the history
Closes spring-projects#1932

Signed-off-by: Gerrit Meier <[email protected]>
  • Loading branch information
meistermeier committed Jan 15, 2025
1 parent d66d85b commit 93951a8
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,7 @@ public void doAdd(List<Document> 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);
Expand Down

0 comments on commit 93951a8

Please sign in to comment.