TypeScript + elasticSearch search has_child filter

Hey guys, i'm been building a search endpoint to my api. and when i try to filter the ''has_child'' query with a match\term query it returns me all the employees that have childs or none at all

here i have the way i'm indexing the documents :

and how i'm searching for the employees with certain attributes:

I also tried to use the ''filter'' and it gives me a error, because the has_child doesnt support it

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.