Filtering Nested Array Objects in Elasticsearch Document with Painless Scripting

Painless is a simple, secure scripting language designed specifically for use with Elasticsearch. It is the default scripting language for Elasticsearch and can safely be used for inline and stored scripts.

https://bit.ly/2TRuUNj