[[java-query-dsl-has-parent-query]]
==== Has Parent Query

See {ref}/query-dsl-has-parent-query.html[Has Parent]

["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{query-dsl-test}[has_parent]
--------------------------------------------------
<1> parent type to query against
<2> query
<3> whether the score from the parent hit should propagate to the child hit
