OpenSearch/docs/java-api/query-dsl/has-child-query.asciidoc

16 lines
391 B
Plaintext

[[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