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]>
Signed-off-by: leijendary <[email protected]>
  • Loading branch information
meistermeier authored and leijendary committed Jan 24, 2025
1 parent 6f94995 commit e094fac
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 e094fac

Please sign in to comment.