java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.HasParentQuery
All Implemented Interfaces:
QueryVariant, JsonpSerializable

@JsonpDeserializable public class HasParentQuery extends QueryBase implements QueryVariant
See Also:
  • Field Details

  • Method Details

    • of

    • _queryKind

      public Query.Kind _queryKind()
      Query variant kind.
      Specified by:
      _queryKind in interface QueryVariant
    • ignoreUnmapped

      @Nullable public final Boolean ignoreUnmapped()
      Indicates whether to ignore an unmapped parent_type and not return any documents instead of an error. You can use this parameter to query multiple indices that may not contain the parent_type.

      API name: ignore_unmapped

    • innerHits

      @Nullable public final InnerHits innerHits()
      If defined, each search hit will contain inner hits.

      API name: inner_hits

    • parentType

      public final String parentType()
      Required - Name of the parent relationship mapped for the join field.

      API name: parent_type

    • query

      public final Query query()
      Required - Query you wish to run on parent documents of the parent_type field. If a parent document matches the search, the query returns its child documents.

      API name: query

    • score

      @Nullable public final Boolean score()
      Indicates whether the relevance score of a matching parent document is aggregated into its child documents.

      API name: score

    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Overrides:
      serializeInternal in class QueryBase
    • setupHasParentQueryDeserializer

      protected static void setupHasParentQueryDeserializer(ObjectDeserializer<HasParentQuery.Builder> op)