Follow ElasticSearch API names: change merge into update.
Added minimal documentation by referring to the ES API doc.