Class Query
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.Query
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,AggregationVariant,TaggedUnion<Query.Kind,QueryVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Query
extends Object
implements TaggedUnion<Query.Kind,QueryVariant>, AggregationVariant, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAggregationvariant kind.final QueryVariant_get()final Query.Kind_kind()Get the of the kind of variant held by this object.bool()Get theboolvariant value.boosting()Get theboostingvariant value.static Query.Builderbuilder()Get thecombined_fieldsvariant value.common()Get thecommonvariant value.Get theconstant_scorevariant value.disMax()Get thedis_maxvariant value.Get thedistance_featurevariant value.booleanexists()Get theexistsvariant value.Get thefield_masking_spanvariant value.Get thefunction_scorevariant value.fuzzy()Get thefuzzyvariant value.Get thegeo_bounding_boxvariant value.Get thegeo_distancevariant value.Get thegeo_polygonvariant value.geoShape()Get thegeo_shapevariant value.hasChild()Get thehas_childvariant value.inthashCode()Get thehas_parentvariant value.hybrid()Get thehybridvariant value.ids()Get theidsvariant value.Get theintervalsvariant value.booleanisBool()Is this variant instance of kindbool?booleanIs this variant instance of kindboosting?booleanIs this variant instance of kindcombined_fields?booleanisCommon()Is this variant instance of kindcommon?booleanIs this variant instance of kindconstant_score?booleanisDisMax()Is this variant instance of kinddis_max?booleanIs this variant instance of kinddistance_feature?booleanisExists()Is this variant instance of kindexists?booleanIs this variant instance of kindfield_masking_span?booleanIs this variant instance of kindfunction_score?booleanisFuzzy()Is this variant instance of kindfuzzy?booleanIs this variant instance of kindgeo_bounding_box?booleanIs this variant instance of kindgeo_distance?booleanIs this variant instance of kindgeo_polygon?booleanIs this variant instance of kindgeo_shape?booleanIs this variant instance of kindhas_child?booleanIs this variant instance of kindhas_parent?booleanisHybrid()Is this variant instance of kindhybrid?booleanisIds()Is this variant instance of kindids?booleanIs this variant instance of kindintervals?booleanisKnn()Is this variant instance of kindknn?booleanisMatch()Is this variant instance of kindmatch?booleanIs this variant instance of kindmatch_all?booleanIs this variant instance of kindmatch_bool_prefix?booleanIs this variant instance of kindmatch_none?booleanIs this variant instance of kindmatch_phrase?booleanIs this variant instance of kindmatch_phrase_prefix?booleanIs this variant instance of kindmore_like_this?booleanIs this variant instance of kindmulti_match?booleanisNested()Is this variant instance of kindnested?booleanisNeural()Is this variant instance of kindneural?booleanIs this variant instance of kindparent_id?booleanIs this variant instance of kindpercolate?booleanisPinned()Is this variant instance of kindpinned?booleanisPrefix()Is this variant instance of kindprefix?booleanIs this variant instance of kindquery_string?booleanisRange()Is this variant instance of kindrange?booleanIs this variant instance of kindrank_feature?booleanisRegexp()Is this variant instance of kindregexp?booleanisScript()Is this variant instance of kindscript?booleanIs this variant instance of kindscript_score?booleanIs this variant instance of kindsimple_query_string?booleanIs this variant instance of kindspan_containing?booleanIs this variant instance of kindspan_first?booleanIs this variant instance of kindspan_multi?booleanIs this variant instance of kindspan_near?booleanIs this variant instance of kindspan_not?booleanisSpanOr()Is this variant instance of kindspan_or?booleanIs this variant instance of kindspan_term?booleanIs this variant instance of kindspan_within?booleanisTerm()Is this variant instance of kindterm?booleanisTerms()Is this variant instance of kindterms?booleanIs this variant instance of kindterms_set?booleanisType()Is this variant instance of kindtype?booleanIs this variant instance of kindwildcard?booleanIs this variant instance of kindwrapper?booleanIs this variant instance of kindxy_shape?knn()Get theknnvariant value.match()Get thematchvariant value.matchAll()Get thematch_allvariant value.Get thematch_bool_prefixvariant value.Get thematch_nonevariant value.Get thematch_phrasevariant value.Get thematch_phrase_prefixvariant value.Get themore_like_thisvariant value.Get themulti_matchvariant value.nested()Get thenestedvariant value.neural()Get theneuralvariant value.static QueryparentId()Get theparent_idvariant value.Get thepercolatevariant value.pinned()Get thepinnedvariant value.prefix()Get theprefixvariant value.Get thequery_stringvariant value.range()Get therangevariant value.Get therank_featurevariant value.regexp()Get theregexpvariant value.script()Get thescriptvariant value.Get thescript_scorevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidGet thesimple_query_stringvariant value.Get thespan_containingvariant value.Get thespan_firstvariant value.Get thespan_multivariant value.spanNear()Get thespan_nearvariant value.spanNot()Get thespan_notvariant value.spanOr()Get thespan_orvariant value.spanTerm()Get thespan_termvariant value.Get thespan_withinvariant value.term()Get thetermvariant value.terms()Get thetermsvariant value.termsSet()Get theterms_setvariant value.type()Get thetypevariant value.wildcard()Get thewildcardvariant value.wrapper()Get thewrappervariant value.xyShape()Get thexy_shapevariant value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.opensearch._types.aggregations.AggregationVariant
toAggregationMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Query
-
-
Method Details
-
_aggregationKind
Aggregationvariant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Query.Kind,QueryVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Query.Kind,QueryVariant>
-
of
-
isBool
public boolean isBool()Is this variant instance of kindbool? -
bool
Get theboolvariant value.- Throws:
IllegalStateException- if the current variant is not theboolkind.
-
isBoosting
public boolean isBoosting()Is this variant instance of kindboosting? -
boosting
Get theboostingvariant value.- Throws:
IllegalStateException- if the current variant is not theboostingkind.
-
isCombinedFields
public boolean isCombinedFields()Is this variant instance of kindcombined_fields? -
combinedFields
Get thecombined_fieldsvariant value.- Throws:
IllegalStateException- if the current variant is not thecombined_fieldskind.
-
isCommon
public boolean isCommon()Is this variant instance of kindcommon? -
common
Get thecommonvariant value.- Throws:
IllegalStateException- if the current variant is not thecommonkind.
-
isConstantScore
public boolean isConstantScore()Is this variant instance of kindconstant_score? -
constantScore
Get theconstant_scorevariant value.- Throws:
IllegalStateException- if the current variant is not theconstant_scorekind.
-
isDisMax
public boolean isDisMax()Is this variant instance of kinddis_max? -
disMax
Get thedis_maxvariant value.- Throws:
IllegalStateException- if the current variant is not thedis_maxkind.
-
isDistanceFeature
public boolean isDistanceFeature()Is this variant instance of kinddistance_feature? -
distanceFeature
Get thedistance_featurevariant value.- Throws:
IllegalStateException- if the current variant is not thedistance_featurekind.
-
isExists
public boolean isExists()Is this variant instance of kindexists? -
exists
Get theexistsvariant value.- Throws:
IllegalStateException- if the current variant is not theexistskind.
-
isFieldMaskingSpan
public boolean isFieldMaskingSpan()Is this variant instance of kindfield_masking_span? -
fieldMaskingSpan
Get thefield_masking_spanvariant value.- Throws:
IllegalStateException- if the current variant is not thefield_masking_spankind.
-
isFunctionScore
public boolean isFunctionScore()Is this variant instance of kindfunction_score? -
functionScore
Get thefunction_scorevariant value.- Throws:
IllegalStateException- if the current variant is not thefunction_scorekind.
-
isFuzzy
public boolean isFuzzy()Is this variant instance of kindfuzzy? -
fuzzy
Get thefuzzyvariant value.- Throws:
IllegalStateException- if the current variant is not thefuzzykind.
-
isGeoBoundingBox
public boolean isGeoBoundingBox()Is this variant instance of kindgeo_bounding_box? -
geoBoundingBox
Get thegeo_bounding_boxvariant value.- Throws:
IllegalStateException- if the current variant is not thegeo_bounding_boxkind.
-
isGeoDistance
public boolean isGeoDistance()Is this variant instance of kindgeo_distance? -
geoDistance
Get thegeo_distancevariant value.- Throws:
IllegalStateException- if the current variant is not thegeo_distancekind.
-
isGeoPolygon
public boolean isGeoPolygon()Is this variant instance of kindgeo_polygon? -
geoPolygon
Get thegeo_polygonvariant value.- Throws:
IllegalStateException- if the current variant is not thegeo_polygonkind.
-
isGeoShape
public boolean isGeoShape()Is this variant instance of kindgeo_shape? -
geoShape
Get thegeo_shapevariant value.- Throws:
IllegalStateException- if the current variant is not thegeo_shapekind.
-
isHasChild
public boolean isHasChild()Is this variant instance of kindhas_child? -
hasChild
Get thehas_childvariant value.- Throws:
IllegalStateException- if the current variant is not thehas_childkind.
-
isHasParent
public boolean isHasParent()Is this variant instance of kindhas_parent? -
hasParent
Get thehas_parentvariant value.- Throws:
IllegalStateException- if the current variant is not thehas_parentkind.
-
isHybrid
public boolean isHybrid()Is this variant instance of kindhybrid? -
hybrid
Get thehybridvariant value.- Throws:
IllegalStateException- if the current variant is not thehybridkind.
-
isIds
public boolean isIds()Is this variant instance of kindids? -
ids
Get theidsvariant value.- Throws:
IllegalStateException- if the current variant is not theidskind.
-
isIntervals
public boolean isIntervals()Is this variant instance of kindintervals? -
intervals
Get theintervalsvariant value.- Throws:
IllegalStateException- if the current variant is not theintervalskind.
-
isKnn
public boolean isKnn()Is this variant instance of kindknn? -
knn
Get theknnvariant value.- Throws:
IllegalStateException- if the current variant is not theknnkind.
-
isMatch
public boolean isMatch()Is this variant instance of kindmatch? -
match
Get thematchvariant value.- Throws:
IllegalStateException- if the current variant is not thematchkind.
-
isMatchAll
public boolean isMatchAll()Is this variant instance of kindmatch_all? -
matchAll
Get thematch_allvariant value.- Throws:
IllegalStateException- if the current variant is not thematch_allkind.
-
isMatchBoolPrefix
public boolean isMatchBoolPrefix()Is this variant instance of kindmatch_bool_prefix? -
matchBoolPrefix
Get thematch_bool_prefixvariant value.- Throws:
IllegalStateException- if the current variant is not thematch_bool_prefixkind.
-
isMatchNone
public boolean isMatchNone()Is this variant instance of kindmatch_none? -
matchNone
Get thematch_nonevariant value.- Throws:
IllegalStateException- if the current variant is not thematch_nonekind.
-
isMatchPhrase
public boolean isMatchPhrase()Is this variant instance of kindmatch_phrase? -
matchPhrase
Get thematch_phrasevariant value.- Throws:
IllegalStateException- if the current variant is not thematch_phrasekind.
-
isMatchPhrasePrefix
public boolean isMatchPhrasePrefix()Is this variant instance of kindmatch_phrase_prefix? -
matchPhrasePrefix
Get thematch_phrase_prefixvariant value.- Throws:
IllegalStateException- if the current variant is not thematch_phrase_prefixkind.
-
isMoreLikeThis
public boolean isMoreLikeThis()Is this variant instance of kindmore_like_this? -
moreLikeThis
Get themore_like_thisvariant value.- Throws:
IllegalStateException- if the current variant is not themore_like_thiskind.
-
isMultiMatch
public boolean isMultiMatch()Is this variant instance of kindmulti_match? -
multiMatch
Get themulti_matchvariant value.- Throws:
IllegalStateException- if the current variant is not themulti_matchkind.
-
isNested
public boolean isNested()Is this variant instance of kindnested? -
nested
Get thenestedvariant value.- Throws:
IllegalStateException- if the current variant is not thenestedkind.
-
isNeural
public boolean isNeural()Is this variant instance of kindneural? -
neural
Get theneuralvariant value.- Throws:
IllegalStateException- if the current variant is not theneuralkind.
-
isParentId
public boolean isParentId()Is this variant instance of kindparent_id? -
parentId
Get theparent_idvariant value.- Throws:
IllegalStateException- if the current variant is not theparent_idkind.
-
isPercolate
public boolean isPercolate()Is this variant instance of kindpercolate? -
percolate
Get thepercolatevariant value.- Throws:
IllegalStateException- if the current variant is not thepercolatekind.
-
isPinned
public boolean isPinned()Is this variant instance of kindpinned? -
pinned
Get thepinnedvariant value.- Throws:
IllegalStateException- if the current variant is not thepinnedkind.
-
isPrefix
public boolean isPrefix()Is this variant instance of kindprefix? -
prefix
Get theprefixvariant value.- Throws:
IllegalStateException- if the current variant is not theprefixkind.
-
isQueryString
public boolean isQueryString()Is this variant instance of kindquery_string? -
queryString
Get thequery_stringvariant value.- Throws:
IllegalStateException- if the current variant is not thequery_stringkind.
-
isRange
public boolean isRange()Is this variant instance of kindrange? -
range
Get therangevariant value.- Throws:
IllegalStateException- if the current variant is not therangekind.
-
isRankFeature
public boolean isRankFeature()Is this variant instance of kindrank_feature? -
rankFeature
Get therank_featurevariant value.- Throws:
IllegalStateException- if the current variant is not therank_featurekind.
-
isRegexp
public boolean isRegexp()Is this variant instance of kindregexp? -
regexp
Get theregexpvariant value.- Throws:
IllegalStateException- if the current variant is not theregexpkind.
-
isScript
public boolean isScript()Is this variant instance of kindscript? -
script
Get thescriptvariant value.- Throws:
IllegalStateException- if the current variant is not thescriptkind.
-
isScriptScore
public boolean isScriptScore()Is this variant instance of kindscript_score? -
scriptScore
Get thescript_scorevariant value.- Throws:
IllegalStateException- if the current variant is not thescript_scorekind.
-
isSimpleQueryString
public boolean isSimpleQueryString()Is this variant instance of kindsimple_query_string? -
simpleQueryString
Get thesimple_query_stringvariant value.- Throws:
IllegalStateException- if the current variant is not thesimple_query_stringkind.
-
isSpanContaining
public boolean isSpanContaining()Is this variant instance of kindspan_containing? -
spanContaining
Get thespan_containingvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_containingkind.
-
isSpanFirst
public boolean isSpanFirst()Is this variant instance of kindspan_first? -
spanFirst
Get thespan_firstvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_firstkind.
-
isSpanMulti
public boolean isSpanMulti()Is this variant instance of kindspan_multi? -
spanMulti
Get thespan_multivariant value.- Throws:
IllegalStateException- if the current variant is not thespan_multikind.
-
isSpanNear
public boolean isSpanNear()Is this variant instance of kindspan_near? -
spanNear
Get thespan_nearvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_nearkind.
-
isSpanNot
public boolean isSpanNot()Is this variant instance of kindspan_not? -
spanNot
Get thespan_notvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_notkind.
-
isSpanOr
public boolean isSpanOr()Is this variant instance of kindspan_or? -
spanOr
Get thespan_orvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_orkind.
-
isSpanTerm
public boolean isSpanTerm()Is this variant instance of kindspan_term? -
spanTerm
Get thespan_termvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_termkind.
-
isSpanWithin
public boolean isSpanWithin()Is this variant instance of kindspan_within? -
spanWithin
Get thespan_withinvariant value.- Throws:
IllegalStateException- if the current variant is not thespan_withinkind.
-
isTerm
public boolean isTerm()Is this variant instance of kindterm? -
term
Get thetermvariant value.- Throws:
IllegalStateException- if the current variant is not thetermkind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
Get thetermsvariant value.- Throws:
IllegalStateException- if the current variant is not thetermskind.
-
isTermsSet
public boolean isTermsSet()Is this variant instance of kindterms_set? -
termsSet
Get theterms_setvariant value.- Throws:
IllegalStateException- if the current variant is not theterms_setkind.
-
isType
public boolean isType()Is this variant instance of kindtype? -
type
Get thetypevariant value.- Throws:
IllegalStateException- if the current variant is not thetypekind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard? -
wildcard
Get thewildcardvariant value.- Throws:
IllegalStateException- if the current variant is not thewildcardkind.
-
isWrapper
public boolean isWrapper()Is this variant instance of kindwrapper? -
wrapper
Get thewrappervariant value.- Throws:
IllegalStateException- if the current variant is not thewrapperkind.
-
isXyShape
public boolean isXyShape()Is this variant instance of kindxy_shape? -
xyShape
Get thexy_shapevariant value.- Throws:
IllegalStateException- if the current variant is not thexy_shapekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupQueryDeserializer
-
hashCode
public int hashCode() -
equals
-