OpenSearch/docs/java-api/query-dsl/has-parent-query.asciidoc
David Pilato f8cf9f790b Update Java documentation for 5.0
Some of the methods have been removed or deprecated.

Also related to #21825.
2016-11-28 17:33:40 +01:00

17 lines
506 B
Plaintext

[[java-query-dsl-has-parent-query]]
==== Has Parent Query
See {ref}/query-dsl-has-parent-query.html[Has Parent]
[source,java]
--------------------------------------------------
QueryBuilder qb = hasParentQuery(
"blog", <1>
termQuery("tag","something"), <2>
false <3>
);
--------------------------------------------------
<1> parent type to query against
<2> query
<3> whether the score from the parent hit should propogate to the child hit