I need to filter elasticsearch documents based on some fields value and a filter on the length of the nested field.
For Example:
{ "id": 1, "source": "upi", "users": [ { "name": "akshay", "mobile": "xxxx" } ] } { "id": 2, "source": "wallet", "users": [ { "name": "Akshay", "mobile": "xxxx" } { "name": "Ajay", "mobile": "xxxx" } ] }
Filter on source and length of users list like the source is "wallet" and length of users is 2 then should return document with id 2.
1.4m articles
1.4m replys
5 comments
57.0k users