[[java-query-dsl-has-child-query]]
==== Has Child Query

See {ref}/query-dsl-has-child-query.html[Has Child Query]

[source,java]
--------------------------------------------------
QueryBuilder qb = hasChildQuery(
    "blog_tag",                     <1>
    termQuery("tag","something")    <2>
);
--------------------------------------------------
<1> child type to query against
<2> query

