I am using BulkProcessor of Elasticsearch Java api for insert/update/delete documents in index. Following methods works well for inserts and deletes
bulkProcessor.add(indexRequest(index).type(type).id(id).source(document))
bulkProcessor.add(deleteRequest(index).type(type).id(id));
Could indexRequest be used to update partial document in index.
Say in elasticsearch index, I have a document
{
"_id": "abcdefghijk",
"id": "1",
"title": "Harry Potter",
"description": "Description for Harry Potter",
"price": 10,
"category": "Book"
}
Is it possible to only update price attribute in the document, say I want to change price to {"price":15} using indexRequest or with any other methods in api