I have 1 lakh individual names in one particular doc_type
and so on.
I receive 50k names from a REST Api, but then to fetch country of these names I have to query ES 50K times which took lot of time and IO on servers.
Also I need to filter the names based on country.
For Ex. only Germany people to extract from 50K names.
Any better way to write such query.