Class HasParentQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.HasParentQuery
- All Implemented Interfaces:
QueryVariant,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<HasParentQuery>Json deserializer forHasParentQuery -
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final BooleanIndicates whether to ignore an unmappedparent_typeand not return any documents instead of an error.final InnerHitsIf defined, each search hit will contain inner hits.static HasParentQueryfinal StringRequired - Name of the parent relationship mapped for thejoinfield.final Queryquery()Required - Query you wish to run on parent documents of theparent_typefield.final Booleanscore()Indicates whether the relevance score of a matching parent document is aggregated into its child documents.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
Json deserializer forHasParentQuery
-
-
Method Details
-
of
-
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
ignoreUnmapped
Indicates whether to ignore an unmappedparent_typeand not return any documents instead of an error. You can use this parameter to query multiple indices that may not contain theparent_type.API name:
ignore_unmapped -
innerHits
If defined, each search hit will contain inner hits.API name:
inner_hits -
parentType
Required - Name of the parent relationship mapped for thejoinfield.API name:
parent_type -
query
Required - Query you wish to run on parent documents of theparent_typefield. If a parent document matches the search, the query returns its child documents.API name:
query -
score
Indicates whether the relevance score of a matching parent document is aggregated into its child documents.API name:
score -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupHasParentQueryDeserializer
protected static void setupHasParentQueryDeserializer(ObjectDeserializer<HasParentQuery.Builder> op)
-