diff --git a/core/es-utils/src/main/java/org/sunbird/common/ElasticSearchRestHighImpl.java b/core/es-utils/src/main/java/org/sunbird/common/ElasticSearchRestHighImpl.java index c462ac430..5273c9261 100644 --- a/core/es-utils/src/main/java/org/sunbird/common/ElasticSearchRestHighImpl.java +++ b/core/es-utils/src/main/java/org/sunbird/common/ElasticSearchRestHighImpl.java @@ -139,7 +139,7 @@ public Future update(String index, String documentId, Map 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 listener = new ActionListener() {