Skip to content

Commit

Permalink
API / Category / Fix update fields
Browse files Browse the repository at this point in the history
Error was Validation Failed: 1: script or doc is missing.

Related to ES8 migration #7599
  • Loading branch information
fxprunayre committed Feb 14, 2024
1 parent 9e5d8fb commit dd0485c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public BulkResponse updateFields(String id, Map<String, Object> fieldMap, Set<St
UpdateOperation addFieldRequestOperation = UpdateOperation.of(
b -> b.id(id)
.index(defaultIndex)
.action(action -> action.upsert(fieldMap))
.action(action -> action.doc(fieldMap))
);

List<BulkOperation> bulkOperationList = new ArrayList<>();
Expand Down

0 comments on commit dd0485c

Please sign in to comment.