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 classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<HasParentQuery>
Json deserializer forHasParentQuery
-
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final Boolean
Indicates whether to ignore an unmappedparent_type
and not return any documents instead of an error.final InnerHits
If defined, each search hit will contain inner hits.static HasParentQuery
final String
Required - Name of the parent relationship mapped for thejoin
field.final Query
query()
Required - Query you wish to run on parent documents of theparent_type
field.final Boolean
score()
Indicates whether the relevance score of a matching parent document is aggregated into its child documents.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
_queryKind
in interfaceQueryVariant
-
ignoreUnmapped
Indicates whether to ignore an unmappedparent_type
and 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 thejoin
field.API name:
parent_type
-
query
Required - Query you wish to run on parent documents of theparent_type
field. 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:
serializeInternal
in classQueryBase
-
setupHasParentQueryDeserializer
protected static void setupHasParentQueryDeserializer(ObjectDeserializer<HasParentQuery.Builder> op)
-