Class HasParentQuery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder<HasParentQuery.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.HasParentQuery.Builder
- All Implemented Interfaces:
WithJson<HasParentQuery.Builder>,ObjectBuilder<HasParentQuery>
- Enclosing class:
- HasParentQuery
public static class HasParentQuery.Builder
extends QueryBase.AbstractBuilder<HasParentQuery.Builder>
implements ObjectBuilder<HasParentQuery>
Builder for
HasParentQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aHasParentQuery.final HasParentQuery.BuilderignoreUnmapped(Boolean value) Indicates whether to ignore an unmappedparent_typeand not return any documents instead of an error.final HasParentQuery.BuilderIf defined, each search hit will contain inner hits.final HasParentQuery.BuilderIf defined, each search hit will contain inner hits.final HasParentQuery.BuilderparentType(String value) Required - Name of the parent relationship mapped for thejoinfield.final HasParentQuery.BuilderRequired - Query you wish to run on parent documents of theparent_typefield.final HasParentQuery.Builderquery(QueryVariant value) Required - Query you wish to run on parent documents of theparent_typefield.final HasParentQuery.BuilderRequired - Query you wish to run on parent documents of theparent_typefield.final HasParentQuery.BuilderIndicates whether the relevance score of a matching parent document is aggregated into its child documents.protected HasParentQuery.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 -
innerHits
public final HasParentQuery.Builder innerHits(Function<InnerHits.Builder, ObjectBuilder<InnerHits>> fn) 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 -
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 -
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 -
self
- Specified by:
selfin classQueryBase.AbstractBuilder<HasParentQuery.Builder>
-
build
Builds aHasParentQuery.- Specified by:
buildin interfaceObjectBuilder<HasParentQuery>- Throws:
NullPointerException- if some of the required fields are null.
-