Class HasChildQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.HasChildQuery
- 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<HasChildQuery>Json deserializer forHasChildQuery -
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final BooleanIndicates whether to ignore an unmappedtypeand not return any documents instead of an error.final InnerHitsIf defined, each search hit will contain inner hits.final IntegerMaximum number of child documents that match the query allowed for a returned parent document.final IntegerMinimum number of child documents that match the query required to match the query for a returned parent document.static HasChildQueryfinal Queryquery()Required - Query you wish to run on child documents of thetypefield.final ChildScoreModeIndicates how scores for matching child documents affect the root parent document’s relevance score.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringtype()Required - Name of the child relationship mapped for thejoinfield.Methods 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 forHasChildQuery
-
-
Method Details
-
of
-
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
ignoreUnmapped
Indicates whether to ignore an unmappedtypeand not return any documents instead of an error.API name:
ignore_unmapped -
innerHits
If defined, each search hit will contain inner hits.API name:
inner_hits -
maxChildren
Maximum number of child documents that match the query allowed for a returned parent document. If the parent document exceeds this limit, it is excluded from the search results.API name:
max_children -
minChildren
Minimum number of child documents that match the query required to match the query for a returned parent document. If the parent document does not meet this limit, it is excluded from the search results.API name:
min_children -
query
Required - Query you wish to run on child documents of thetypefield. If a child document matches the search, the query returns the parent document.API name:
query -
scoreMode
Indicates how scores for matching child documents affect the root parent document’s relevance score.API name:
score_mode -
type
Required - Name of the child relationship mapped for thejoinfield.API name:
type -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupHasChildQueryDeserializer
-