Class Query
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.Query
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable,OpenTaggedUnion<Query.Kind,,Object> TaggedUnion<Query.Kind,Object>
@JsonpDeserializable
public class Query
extends Object
implements OpenTaggedUnion<Query.Kind,Object>, AggregationVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAggregation variant kind._custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsQuery.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customQuerydefined by a plugin?final Query.Kind_kind()Get the of the kind of variant held by this object.bool()Get theboolvariant value.boosting()Get theboostingvariant value.Get thecombined_fieldsvariant value.common()Get thecommonvariant value.Get theconstant_scorevariant value.disMax()Get thedis_maxvariant value.Get thedistance_featurevariant value.exists()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.Get thehas_parentvariant 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?booleanisIds()Is this variant instance of kindids?booleanIs this variant instance of kindintervals?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?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?booleanisShape()Is this variant instance of kindshape?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?booleanIs this variant instance of kindtext_expansion?booleanisType()Is this variant instance of kindtype?booleanIs this variant instance of kindwildcard?booleanIs this variant instance of kindwrapper?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.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 voidshape()Get theshapevariant value.Get 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.Get thetext_expansionvariant value.toString()type()Get thetypevariant value.wildcard()Get thewildcardvariant value.wrapper()Get thewrappervariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant
_toAggregation
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Query
-
-
Method Details
-
_aggregationKind
Aggregation variant 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,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Query.Kind,Object>
-
of
-
isBool
public boolean isBool()Is this variant instance of kindbool? -
bool
Get theboolvariant value.- Throws:
IllegalStateException- if the current variant is not of theboolkind.
-
isBoosting
public boolean isBoosting()Is this variant instance of kindboosting? -
boosting
Get theboostingvariant value.- Throws:
IllegalStateException- if the current variant is not of theboostingkind.
-
isCommon
public boolean isCommon()Is this variant instance of kindcommon? -
common
Get thecommonvariant value.- Throws:
IllegalStateException- if the current variant is not of thecommonkind.
-
isCombinedFields
public boolean isCombinedFields()Is this variant instance of kindcombined_fields? -
combinedFields
Get thecombined_fieldsvariant value.- Throws:
IllegalStateException- if the current variant is not of thecombined_fieldskind.
-
isConstantScore
public boolean isConstantScore()Is this variant instance of kindconstant_score? -
constantScore
Get theconstant_scorevariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of 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 of thedistance_featurekind.
-
isExists
public boolean isExists()Is this variant instance of kindexists? -
exists
Get theexistsvariant value.- Throws:
IllegalStateException- if the current variant is not of theexistskind.
-
isFunctionScore
public boolean isFunctionScore()Is this variant instance of kindfunction_score? -
functionScore
Get thefunction_scorevariant value.- Throws:
IllegalStateException- if the current variant is not of thefunction_scorekind.
-
isFuzzy
public boolean isFuzzy()Is this variant instance of kindfuzzy? -
fuzzy
Get thefuzzyvariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of 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 of 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 of 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 of 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 of 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 of thehas_parentkind.
-
isIds
public boolean isIds()Is this variant instance of kindids? -
ids
Get theidsvariant value.- Throws:
IllegalStateException- if the current variant is not of theidskind.
-
isIntervals
public boolean isIntervals()Is this variant instance of kindintervals? -
intervals
Get theintervalsvariant value.- Throws:
IllegalStateException- if the current variant is not of theintervalskind.
-
isMatch
public boolean isMatch()Is this variant instance of kindmatch? -
match
Get thematchvariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of 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 of 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 of 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 of 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 of 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 of 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 of themulti_matchkind.
-
isNested
public boolean isNested()Is this variant instance of kindnested? -
nested
Get thenestedvariant value.- Throws:
IllegalStateException- if the current variant is not of thenestedkind.
-
isParentId
public boolean isParentId()Is this variant instance of kindparent_id? -
parentId
Get theparent_idvariant value.- Throws:
IllegalStateException- if the current variant is not of theparent_idkind.
-
isPercolate
public boolean isPercolate()Is this variant instance of kindpercolate? -
percolate
Get thepercolatevariant value.- Throws:
IllegalStateException- if the current variant is not of thepercolatekind.
-
isPinned
public boolean isPinned()Is this variant instance of kindpinned? -
pinned
Get thepinnedvariant value.- Throws:
IllegalStateException- if the current variant is not of thepinnedkind.
-
isPrefix
public boolean isPrefix()Is this variant instance of kindprefix? -
prefix
Get theprefixvariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of thequery_stringkind.
-
isRange
public boolean isRange()Is this variant instance of kindrange? -
range
Get therangevariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of therank_featurekind.
-
isRegexp
public boolean isRegexp()Is this variant instance of kindregexp? -
regexp
Get theregexpvariant value.- Throws:
IllegalStateException- if the current variant is not of theregexpkind.
-
isScript
public boolean isScript()Is this variant instance of kindscript? -
script
Get thescriptvariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of thescript_scorekind.
-
isShape
public boolean isShape()Is this variant instance of kindshape? -
shape
Get theshapevariant value.- Throws:
IllegalStateException- if the current variant is not of theshapekind.
-
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 of 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 of thespan_containingkind.
-
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 of thefield_masking_spankind.
-
isSpanFirst
public boolean isSpanFirst()Is this variant instance of kindspan_first? -
spanFirst
Get thespan_firstvariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of 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 of 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 of 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 of 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 of 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 of thespan_withinkind.
-
isTerm
public boolean isTerm()Is this variant instance of kindterm? -
term
Get thetermvariant value.- Throws:
IllegalStateException- if the current variant is not of thetermkind.
-
isTerms
public boolean isTerms()Is this variant instance of kindterms? -
terms
Get thetermsvariant value.- Throws:
IllegalStateException- if the current variant is not of 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 of theterms_setkind.
-
isTextExpansion
public boolean isTextExpansion()Is this variant instance of kindtext_expansion? -
textExpansion
Get thetext_expansionvariant value.- Throws:
IllegalStateException- if the current variant is not of thetext_expansionkind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard? -
wildcard
Get thewildcardvariant value.- Throws:
IllegalStateException- if the current variant is not of thewildcardkind.
-
isWrapper
public boolean isWrapper()Is this variant instance of kindwrapper? -
wrapper
Get thewrappervariant value.- Throws:
IllegalStateException- if the current variant is not of thewrapperkind.
-
isType
public boolean isType()Is this variant instance of kindtype? -
type
Get thetypevariant value.- Throws:
IllegalStateException- if the current variant is not of thetypekind.
-
_isCustom
public boolean _isCustom()Is this a customQuerydefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsQuery.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<Query.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notQuery.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupQueryDeserializer
-