How to filter nested array in response? How to filter nested array in response? elasticsearch elasticsearch

How to filter nested array in response?


In short: you can't. You need to filter the nested docs in your own code.

It's a known issue:

"Expose matching nested docs to the query and sort"https://github.com/elasticsearch/elasticsearch/issues/1383:

"Return matching nested inner objects per hit."

https://github.com/elasticsearch/elasticsearch/issues/3022