Arsnael commented on code in PR #1648:
URL: https://github.com/apache/james-project/pull/1648#discussion_r1267738061


##########
backends-common/opensearch/src/main/java/org/apache/james/backends/opensearch/OpenSearchIndexer.java:
##########
@@ -90,7 +89,7 @@ public Mono<BulkResponse> update(List<UpdatedRepresentation> 
updatedDocumentPart
             op -> op.update(idx -> idx
                 .index(aliasName.getValue())
                 .id(updatedDocumentPart.getId().asString())
-                .document(Collections.singletonMap("doc", new 
RawValue(updatedDocumentPart.getUpdatedDocumentPart())))
+                .document(new 
RawValue(updatedDocumentPart.getUpdatedDocumentPart()))

Review Comment:
   Actually they seem to have fixed that dirty workaround, we can use a json 
raw value directly in the document update again :)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to