Class HasParentQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.HasParentQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<HasParentQuery.Builder,HasParentQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class HasParentQuery
extends QueryBase
implements QueryVariant, ToCopyableBuilder<HasParentQuery.Builder,HasParentQuery>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._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 TypeMethodDescriptionQueryvariant kind.static HasParentQuery.Builderbuilder()booleaninthashCode()final BooleanIndicates whether to ignore an unmappedparent_typeand not return any documents instead of an error.final InnerHitsAPI name:inner_hitsstatic HasParentQueryfinal StringRequired - API name:parent_typefinal Queryquery()Required - API name:queryfinal 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 voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch._types.query_dsl.QueryVariant
toQueryMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forHasParentQuery
-
-
Method Details
-
of
-
_queryKind
Queryvariant 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 indexes that may not contain theparent_type.API name:
ignore_unmapped -
innerHits
API name:inner_hits -
parentType
Required - API name:parent_type -
query
Required - 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
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<HasParentQuery.Builder,HasParentQuery> - Returns:
- a new builder instance.
-
builder
-
setupHasParentQueryDeserializer
protected static void setupHasParentQueryDeserializer(ObjectDeserializer<HasParentQuery.Builder> op) -
hashCode
public int hashCode() -
equals
-