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 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<HasChildQuery>
Json deserializer forHasChildQuery
-
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final Boolean
Indicates whether to ignore an unmappedtype
and not return any documents instead of an error.final InnerHits
If defined, each search hit will contain inner hits.final Integer
Maximum number of child documents that match the query allowed for a returned parent document.final Integer
Minimum number of child documents that match the query required to match the query for a returned parent document.static HasChildQuery
final Query
query()
Required - Query you wish to run on child documents of thetype
field.final ChildScoreMode
Indicates how scores for matching child documents affect the root parent document’s relevance score.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
type()
Required - Name of the child relationship mapped for thejoin
field.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 forHasChildQuery
-
-
Method Details
-
of
-
_queryKind
Query variant kind.- Specified by:
_queryKind
in interfaceQueryVariant
-
ignoreUnmapped
Indicates whether to ignore an unmappedtype
and 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 thetype
field. 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 thejoin
field.API name:
type
-
serializeInternal
- Overrides:
serializeInternal
in classQueryBase
-
setupHasChildQueryDeserializer
-