The update API allows to update a document based on a script provided:
UpdateRequest updateRequest = new UpdateRequest("ttl", "doc", "1") .script("ctx._source.gender = \"male\""); client.update(updateRequest).get();
Most Popular
Video
Get Started with Elasticsearch
Intro to Kibana
ELK for Logs & Metrics