Class QueryContainer
java.lang.Object
org.opensearch.client.util.TaggedUnion<QueryContainer.Tag,java.lang.Object>
org.opensearch.client.opensearch._types.query_dsl.QueryContainer
- All Implemented Interfaces:
ToJsonp
public class QueryContainer extends TaggedUnion<QueryContainer.Tag,java.lang.Object> implements ToJsonp
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueryContainer.Builderstatic classQueryContainer.Tag -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<QueryContainer>DESERIALIZER -
Method Summary
Modifier and Type Method Description BoolQuerybool()Get theboolvariant value.BoostingQueryboosting()Get theboostingvariant value.CombinedFieldsQuerycombinedFields()Get thecombined_fieldsvariant value.NamedValue<jakarta.json.JsonValue>common()Get thecommonvariant value.ConstantScoreQueryconstantScore()Get theconstant_scorevariant value.DisMaxQuerydisMax()Get thedis_maxvariant value.jakarta.json.JsonValuedistanceFeature()Get thedistance_featurevariant value.ExistsQueryexists()Get theexistsvariant value.SpanFieldMaskingQueryfieldMaskingSpan()Get thefield_masking_spanvariant value.FunctionScoreQueryfunctionScore()Get thefunction_scorevariant value.NamedValue<jakarta.json.JsonValue>fuzzy()Get thefuzzyvariant value.NamedQuery<jakarta.json.JsonValue>geoBoundingBox()Get thegeo_bounding_boxvariant value.GeoDistanceQuerygeoDistance()Get thegeo_distancevariant value.NamedQuery<jakarta.json.JsonValue>geoPolygon()Get thegeo_polygonvariant value.NamedQuery<jakarta.json.JsonValue>geoShape()Get thegeo_shapevariant value.HasChildQueryhasChild()Get thehas_childvariant value.HasParentQueryhasParent()Get thehas_parentvariant value.IdsQueryids()Get theidsvariant value.NamedQuery<jakarta.json.JsonValue>intervals()Get theintervalsvariant value.booleanisBool()Is thisQueryContainerof aboolkind?booleanisBoosting()Is thisQueryContainerof aboostingkind?booleanisCombinedFields()Is thisQueryContainerof acombined_fieldskind?booleanisCommon()Is thisQueryContainerof acommonkind?booleanisConstantScore()Is thisQueryContainerof aconstant_scorekind?booleanisDisMax()Is thisQueryContainerof adis_maxkind?booleanisDistanceFeature()Is thisQueryContainerof adistance_featurekind?booleanisExists()Is thisQueryContainerof aexistskind?booleanisFieldMaskingSpan()Is thisQueryContainerof afield_masking_spankind?booleanisFunctionScore()Is thisQueryContainerof afunction_scorekind?booleanisFuzzy()Is thisQueryContainerof afuzzykind?booleanisGeoBoundingBox()Is thisQueryContainerof ageo_bounding_boxkind?booleanisGeoDistance()Is thisQueryContainerof ageo_distancekind?booleanisGeoPolygon()Is thisQueryContainerof ageo_polygonkind?booleanisGeoShape()Is thisQueryContainerof ageo_shapekind?booleanisHasChild()Is thisQueryContainerof ahas_childkind?booleanisHasParent()Is thisQueryContainerof ahas_parentkind?booleanisIds()Is thisQueryContainerof aidskind?booleanisIntervals()Is thisQueryContainerof aintervalskind?booleanisMatch()Is thisQueryContainerof amatchkind?booleanisMatchAll()Is thisQueryContainerof amatch_allkind?booleanisMatchBoolPrefix()Is thisQueryContainerof amatch_bool_prefixkind?booleanisMatchNone()Is thisQueryContainerof amatch_nonekind?booleanisMatchPhrase()Is thisQueryContainerof amatch_phrasekind?booleanisMatchPhrasePrefix()Is thisQueryContainerof amatch_phrase_prefixkind?booleanisMoreLikeThis()Is thisQueryContainerof amore_like_thiskind?booleanisMultiMatch()Is thisQueryContainerof amulti_matchkind?booleanisNested()Is thisQueryContainerof anestedkind?booleanisParentId()Is thisQueryContainerof aparent_idkind?booleanisPercolate()Is thisQueryContainerof apercolatekind?booleanisPinned()Is thisQueryContainerof apinnedkind?booleanisPrefix()Is thisQueryContainerof aprefixkind?booleanisQueryString()Is thisQueryContainerof aquery_stringkind?booleanisRange()Is thisQueryContainerof arangekind?booleanisRankFeature()Is thisQueryContainerof arank_featurekind?booleanisRegexp()Is thisQueryContainerof aregexpkind?booleanisScript()Is thisQueryContainerof ascriptkind?booleanisScriptScore()Is thisQueryContainerof ascript_scorekind?booleanisShape()Is thisQueryContainerof ashapekind?booleanisSimpleQueryString()Is thisQueryContainerof asimple_query_stringkind?booleanisSpanContaining()Is thisQueryContainerof aspan_containingkind?booleanisSpanFirst()Is thisQueryContainerof aspan_firstkind?booleanisSpanMulti()Is thisQueryContainerof aspan_multikind?booleanisSpanNear()Is thisQueryContainerof aspan_nearkind?booleanisSpanNot()Is thisQueryContainerof aspan_notkind?booleanisSpanOr()Is thisQueryContainerof aspan_orkind?booleanisSpanTerm()Is thisQueryContainerof aspan_termkind?booleanisSpanWithin()Is thisQueryContainerof aspan_withinkind?booleanisTemplate()Is thisQueryContainerof atemplatekind?booleanisTerm()Is thisQueryContainerof atermkind?booleanisTerms()Is thisQueryContainerof atermskind?booleanisTermsSet()Is thisQueryContainerof aterms_setkind?booleanisType()Is thisQueryContainerof atypekind?booleanisWildcard()Is thisQueryContainerof awildcardkind?NamedQuery<jakarta.json.JsonValue>match()Get thematchvariant value.MatchAllQuerymatchAll()Get thematch_allvariant value.NamedQuery<jakarta.json.JsonValue>matchBoolPrefix()Get thematch_bool_prefixvariant value.jakarta.json.JsonValuematchNone()Get thematch_nonevariant value.NamedQuery<jakarta.json.JsonValue>matchPhrase()Get thematch_phrasevariant value.NamedQuery<jakarta.json.JsonValue>matchPhrasePrefix()Get thematch_phrase_prefixvariant value.MoreLikeThisQuerymoreLikeThis()Get themore_like_thisvariant value.MultiMatchQuerymultiMatch()Get themulti_matchvariant value.NestedQuerynested()Get thenestedvariant value.ParentIdQueryparentId()Get theparent_idvariant value.PercolateQuerypercolate()Get thepercolatevariant value.PinnedQuerypinned()Get thepinnedvariant value.NamedQuery<jakarta.json.JsonValue>prefix()Get theprefixvariant value.QueryStringQueryqueryString()Get thequery_stringvariant value.NamedQuery<RangeQuery>range()Get therangevariant value.NamedQuery<jakarta.json.JsonValue>rankFeature()Get therank_featurevariant value.NamedQuery<jakarta.json.JsonValue>regexp()Get theregexpvariant value.ScriptQueryscript()Get thescriptvariant value.ScriptScoreQueryscriptScore()Get thescript_scorevariant value.NamedQuery<jakarta.json.JsonValue>shape()Get theshapevariant value.SimpleQueryStringQuerysimpleQueryString()Get thesimple_query_stringvariant value.SpanContainingQueryspanContaining()Get thespan_containingvariant value.SpanFirstQueryspanFirst()Get thespan_firstvariant value.SpanMultiTermQueryspanMulti()Get thespan_multivariant value.SpanNearQueryspanNear()Get thespan_nearvariant value.SpanNotQueryspanNot()Get thespan_notvariant value.SpanOrQueryspanOr()Get thespan_orvariant value.NamedQuery<jakarta.json.JsonValue>spanTerm()Get thespan_termvariant value.SpanWithinQueryspanWithin()Get thespan_withinvariant value.QueryTemplatetemplate()Get thetemplatevariant value.NamedQuery<jakarta.json.JsonValue>term()Get thetermvariant value.NamedQuery<jakarta.json.JsonValue>terms()Get thetermsvariant value.NamedQuery<jakarta.json.JsonValue>termsSet()Get theterms_setvariant value.voidtoJsonp(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)TypeQuerytype()Get thetypevariant value.NamedQuery<jakarta.json.JsonValue>wildcard()Get thewildcardvariant value.
-
Field Details
-
Method Details
-
isBool
public boolean isBool()Is thisQueryContainerof aboolkind? -
bool
Get theboolvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theboolkind.
-
isBoosting
public boolean isBoosting()Is thisQueryContainerof aboostingkind? -
boosting
Get theboostingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theboostingkind.
-
isCommon
public boolean isCommon()Is thisQueryContainerof acommonkind? -
common
Get thecommonvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecommonkind.
-
isCombinedFields
public boolean isCombinedFields()Is thisQueryContainerof acombined_fieldskind? -
combinedFields
Get thecombined_fieldsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecombined_fieldskind.
-
isConstantScore
public boolean isConstantScore()Is thisQueryContainerof aconstant_scorekind? -
constantScore
Get theconstant_scorevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theconstant_scorekind.
-
isDisMax
public boolean isDisMax()Is thisQueryContainerof adis_maxkind? -
disMax
Get thedis_maxvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedis_maxkind.
-
isDistanceFeature
public boolean isDistanceFeature()Is thisQueryContainerof adistance_featurekind? -
distanceFeature
public jakarta.json.JsonValue distanceFeature()Get thedistance_featurevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedistance_featurekind.
-
isExists
public boolean isExists()Is thisQueryContainerof aexistskind? -
exists
Get theexistsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theexistskind.
-
isFunctionScore
public boolean isFunctionScore()Is thisQueryContainerof afunction_scorekind? -
functionScore
Get thefunction_scorevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefunction_scorekind.
-
isFuzzy
public boolean isFuzzy()Is thisQueryContainerof afuzzykind? -
fuzzy
Get thefuzzyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefuzzykind.
-
isGeoBoundingBox
public boolean isGeoBoundingBox()Is thisQueryContainerof ageo_bounding_boxkind? -
geoBoundingBox
Get thegeo_bounding_boxvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_bounding_boxkind.
-
isGeoDistance
public boolean isGeoDistance()Is thisQueryContainerof ageo_distancekind? -
geoDistance
Get thegeo_distancevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_distancekind.
-
isGeoPolygon
public boolean isGeoPolygon()Is thisQueryContainerof ageo_polygonkind? -
geoPolygon
Get thegeo_polygonvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_polygonkind.
-
isGeoShape
public boolean isGeoShape()Is thisQueryContainerof ageo_shapekind? -
geoShape
Get thegeo_shapevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_shapekind.
-
isHasChild
public boolean isHasChild()Is thisQueryContainerof ahas_childkind? -
hasChild
Get thehas_childvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehas_childkind.
-
isHasParent
public boolean isHasParent()Is thisQueryContainerof ahas_parentkind? -
hasParent
Get thehas_parentvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehas_parentkind.
-
isIds
public boolean isIds()Is thisQueryContainerof aidskind? -
ids
Get theidsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theidskind.
-
isIntervals
public boolean isIntervals()Is thisQueryContainerof aintervalskind? -
intervals
Get theintervalsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theintervalskind.
-
isMatch
public boolean isMatch()Is thisQueryContainerof amatchkind? -
match
Get thematchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematchkind.
-
isMatchAll
public boolean isMatchAll()Is thisQueryContainerof amatch_allkind? -
matchAll
Get thematch_allvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_allkind.
-
isMatchBoolPrefix
public boolean isMatchBoolPrefix()Is thisQueryContainerof amatch_bool_prefixkind? -
matchBoolPrefix
Get thematch_bool_prefixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_bool_prefixkind.
-
isMatchNone
public boolean isMatchNone()Is thisQueryContainerof amatch_nonekind? -
matchNone
public jakarta.json.JsonValue matchNone()Get thematch_nonevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_nonekind.
-
isMatchPhrase
public boolean isMatchPhrase()Is thisQueryContainerof amatch_phrasekind? -
matchPhrase
Get thematch_phrasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_phrasekind.
-
isMatchPhrasePrefix
public boolean isMatchPhrasePrefix()Is thisQueryContainerof amatch_phrase_prefixkind? -
matchPhrasePrefix
Get thematch_phrase_prefixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_phrase_prefixkind.
-
isMoreLikeThis
public boolean isMoreLikeThis()Is thisQueryContainerof amore_like_thiskind? -
moreLikeThis
Get themore_like_thisvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themore_like_thiskind.
-
isMultiMatch
public boolean isMultiMatch()Is thisQueryContainerof amulti_matchkind? -
multiMatch
Get themulti_matchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themulti_matchkind.
-
isNested
public boolean isNested()Is thisQueryContainerof anestedkind? -
nested
Get thenestedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenestedkind.
-
isParentId
public boolean isParentId()Is thisQueryContainerof aparent_idkind? -
parentId
Get theparent_idvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theparent_idkind.
-
isPercolate
public boolean isPercolate()Is thisQueryContainerof apercolatekind? -
percolate
Get thepercolatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepercolatekind.
-
isPinned
public boolean isPinned()Is thisQueryContainerof apinnedkind? -
pinned
Get thepinnedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepinnedkind.
-
isPrefix
public boolean isPrefix()Is thisQueryContainerof aprefixkind? -
prefix
Get theprefixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theprefixkind.
-
isQueryString
public boolean isQueryString()Is thisQueryContainerof aquery_stringkind? -
queryString
Get thequery_stringvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thequery_stringkind.
-
isRange
public boolean isRange()Is thisQueryContainerof arangekind? -
range
Get therangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therangekind.
-
isRankFeature
public boolean isRankFeature()Is thisQueryContainerof arank_featurekind? -
rankFeature
Get therank_featurevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therank_featurekind.
-
isRegexp
public boolean isRegexp()Is thisQueryContainerof aregexpkind? -
regexp
Get theregexpvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theregexpkind.
-
isScript
public boolean isScript()Is thisQueryContainerof ascriptkind? -
script
Get thescriptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescriptkind.
-
isScriptScore
public boolean isScriptScore()Is thisQueryContainerof ascript_scorekind? -
scriptScore
Get thescript_scorevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescript_scorekind.
-
isShape
public boolean isShape()Is thisQueryContainerof ashapekind? -
shape
Get theshapevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theshapekind.
-
isSimpleQueryString
public boolean isSimpleQueryString()Is thisQueryContainerof asimple_query_stringkind? -
simpleQueryString
Get thesimple_query_stringvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimple_query_stringkind.
-
isSpanContaining
public boolean isSpanContaining()Is thisQueryContainerof aspan_containingkind? -
spanContaining
Get thespan_containingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_containingkind.
-
isFieldMaskingSpan
public boolean isFieldMaskingSpan()Is thisQueryContainerof afield_masking_spankind? -
fieldMaskingSpan
Get thefield_masking_spanvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefield_masking_spankind.
-
isSpanFirst
public boolean isSpanFirst()Is thisQueryContainerof aspan_firstkind? -
spanFirst
Get thespan_firstvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_firstkind.
-
isSpanMulti
public boolean isSpanMulti()Is thisQueryContainerof aspan_multikind? -
spanMulti
Get thespan_multivariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_multikind.
-
isSpanNear
public boolean isSpanNear()Is thisQueryContainerof aspan_nearkind? -
spanNear
Get thespan_nearvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_nearkind.
-
isSpanNot
public boolean isSpanNot()Is thisQueryContainerof aspan_notkind? -
spanNot
Get thespan_notvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_notkind.
-
isSpanOr
public boolean isSpanOr()Is thisQueryContainerof aspan_orkind? -
spanOr
Get thespan_orvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_orkind.
-
isSpanTerm
public boolean isSpanTerm()Is thisQueryContainerof aspan_termkind? -
spanTerm
Get thespan_termvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_termkind.
-
isSpanWithin
public boolean isSpanWithin()Is thisQueryContainerof aspan_withinkind? -
spanWithin
Get thespan_withinvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_withinkind.
-
isTemplate
public boolean isTemplate()Is thisQueryContainerof atemplatekind? -
template
Get thetemplatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetemplatekind.
-
isTerm
public boolean isTerm()Is thisQueryContainerof atermkind? -
term
Get thetermvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetermkind.
-
isTerms
public boolean isTerms()Is thisQueryContainerof atermskind? -
terms
Get thetermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetermskind.
-
isTermsSet
public boolean isTermsSet()Is thisQueryContainerof aterms_setkind? -
termsSet
Get theterms_setvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theterms_setkind.
-
isWildcard
public boolean isWildcard()Is thisQueryContainerof awildcardkind? -
wildcard
Get thewildcardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewildcardkind.
-
isType
public boolean isType()Is thisQueryContainerof atypekind? -
type
Get thetypevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetypekind.
-
toJsonp
-