Hash Child Query does not work when using with Child item v: 5.6


(Arifemre61) #1

Hi All,

I am using parent-child relationship in Elasticsearch 5.6 cluster

İn my case I have a tree like

Post (an object)
Comment (comments of an object)
CommentBlock (blocked users of a comment)

I don't want to get blocked comments by user when I search the comments

in nest I am using this query;

& q.Bool(b => b.MustNot(m => m.HasChild(hs => hs.Query(qq => qq.Term(tt => tt.MemberId, MemberId))))))

this query did not work.

When I write has child query for a parent it is ok but
When I write has child query for a child ( child of child) i does not work

Thanks for your helps


(system) #2

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