Skip to content

Commit

Permalink
Issue #LR-766 feat: Fixed issue for update
Browse files Browse the repository at this point in the history
  • Loading branch information
AmiableAnil committed May 7, 2024
1 parent 6684f3c commit 775775a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public Future<Boolean> update(String index, String documentId, Map<String, Objec
if (!StringUtils.isBlank(index) && !StringUtils.isBlank(documentId)) {
// Map<String, Object> updatedDoc = checkDocStringLength(document);
IndexRequest indexRequest = new IndexRequest(index).id(documentId).source(document);
UpdateRequest updateRequest = new UpdateRequest().index(index).id(documentId).doc(document).upsert(indexRequest);
UpdateRequest updateRequest = new UpdateRequest().index(index).type(_DOC).id(documentId).doc(document).upsert(indexRequest);

ActionListener<UpdateResponse> listener =
new ActionListener<UpdateResponse>() {
Expand Down

0 comments on commit 775775a

Please sign in to comment.