Elasticsearch - Advanced Patterns
You want to create a runtime field
status that returns "adult" if age ≥ 18, otherwise "minor". Which painless script correctly implements this logic?