How would you write a painless script for a runtime field age_category that returns "senior" if age ≥ 65, "adult" if age ≥ 18 but less than 65, and "child" otherwise?
hard🚀 Application Q9 of Q15
Elasticsearch - Advanced Patterns
How would you write a painless script for a runtime field age_category that returns "senior" if age ≥ 65, "adult" if age ≥ 18 but less than 65, and "child" otherwise?