Class Query
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.Query
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable,TaggedUnion<java.lang.Object>,UnionVariant
@JsonpDeserializable public class Query extends java.lang.Object implements TaggedUnion<java.lang.Object>, AggregationVariant, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuery.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Query>_DESERIALIZERstatic java.lang.StringBOOLstatic java.lang.StringBOOSTINGstatic java.lang.StringCOMBINED_FIELDSstatic java.lang.StringCOMMONstatic java.lang.StringCONSTANT_SCOREstatic java.lang.StringDIS_MAXstatic java.lang.StringDISTANCE_FEATUREstatic java.lang.StringEXISTSstatic java.lang.StringFIELD_MASKING_SPANstatic java.lang.StringFUNCTION_SCOREstatic java.lang.StringFUZZYstatic java.lang.StringGEO_BOUNDING_BOXstatic java.lang.StringGEO_DISTANCEstatic java.lang.StringGEO_POLYGONstatic java.lang.StringGEO_SHAPEstatic java.lang.StringHAS_CHILDstatic java.lang.StringHAS_PARENTstatic java.lang.StringIDSstatic java.lang.StringINTERVALSstatic java.lang.StringMATCHstatic java.lang.StringMATCH_ALLstatic java.lang.StringMATCH_BOOL_PREFIXstatic java.lang.StringMATCH_NONEstatic java.lang.StringMATCH_PHRASEstatic java.lang.StringMATCH_PHRASE_PREFIXstatic java.lang.StringMORE_LIKE_THISstatic java.lang.StringMULTI_MATCHstatic java.lang.StringNESTEDstatic java.lang.StringPARENT_IDstatic java.lang.StringPERCOLATEstatic java.lang.StringPINNEDstatic java.lang.StringPREFIXstatic java.lang.StringQUERY_STRINGstatic java.lang.StringRANGEstatic java.lang.StringRANK_FEATUREstatic java.lang.StringREGEXPstatic java.lang.StringSCRIPTstatic java.lang.StringSCRIPT_SCOREstatic java.lang.StringSHAPEstatic java.lang.StringSIMPLE_QUERY_STRINGstatic java.lang.StringSPAN_CONTAININGstatic java.lang.StringSPAN_FIRSTstatic java.lang.StringSPAN_MULTIstatic java.lang.StringSPAN_NEARstatic java.lang.StringSPAN_NOTstatic java.lang.StringSPAN_ORstatic java.lang.StringSPAN_TERMstatic java.lang.StringSPAN_WITHINstatic java.lang.StringTERMstatic java.lang.StringTERMSstatic java.lang.StringTERMS_SETstatic java.lang.StringTYPEstatic java.lang.StringWILDCARD -
Constructor Summary
Constructors Constructor Description Query(QueryVariant value)Query(ObjectBuilder<T> builder)Query(java.util.function.Function<Query.Builder,Query.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()java.lang.String_type()Get the of the type of the variant held by this union object.java.lang.String_variantType()Aggregationvariant typeBoolQuerybool()Get theboolvariant value.BoostingQueryboosting()Get theboostingvariant value.CombinedFieldsQuerycombinedFields()Get thecombined_fieldsvariant value.CommonTermsQuerycommon()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.FuzzyQueryfuzzy()Get thefuzzyvariant value.GeoBoundingBoxQuerygeoBoundingBox()Get thegeo_bounding_boxvariant value.GeoDistanceQuerygeoDistance()Get thegeo_distancevariant value.GeoPolygonQuerygeoPolygon()Get thegeo_polygonvariant value.GeoShapeQuerygeoShape()Get thegeo_shapevariant value.HasChildQueryhasChild()Get thehas_childvariant value.HasParentQueryhasParent()Get thehas_parentvariant value.IdsQueryids()Get theidsvariant value.IntervalsQueryintervals()Get theintervalsvariant value.MatchQuerymatch()Get thematchvariant value.MatchAllQuerymatchAll()Get thematch_allvariant value.MatchBoolPrefixQuerymatchBoolPrefix()Get thematch_bool_prefixvariant value.MatchNoneQuerymatchNone()Get thematch_nonevariant value.MatchPhraseQuerymatchPhrase()Get thematch_phrasevariant value.MatchPhrasePrefixQuerymatchPhrasePrefix()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.PrefixQueryprefix()Get theprefixvariant value.QueryStringQueryqueryString()Get thequery_stringvariant value.jakarta.json.JsonValuerange()Get therangevariant value.RankFeatureQueryrankFeature()Get therank_featurevariant value.RegexpQueryregexp()Get theregexpvariant value.ScriptQueryscript()Get thescriptvariant value.ScriptScoreQueryscriptScore()Get thescript_scorevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupQueryDeserializer(DelegatingDeserializer<Query.Builder> op)ShapeQueryshape()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.SpanTermQueryspanTerm()Get thespan_termvariant value.SpanWithinQueryspanWithin()Get thespan_withinvariant value.TermQueryterm()Get thetermvariant value.TermsQueryterms()Get thetermsvariant value.TermsSetQuerytermsSet()Get theterms_setvariant value.TypeQuerytype()Get thetypevariant value.WildcardQuerywildcard()Get thewildcardvariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant
_toAggregationMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
BOOL
public static final java.lang.String BOOL- See Also:
- Constant Field Values
-
BOOSTING
public static final java.lang.String BOOSTING- See Also:
- Constant Field Values
-
COMMON
public static final java.lang.String COMMON- See Also:
- Constant Field Values
-
COMBINED_FIELDS
public static final java.lang.String COMBINED_FIELDS- See Also:
- Constant Field Values
-
CONSTANT_SCORE
public static final java.lang.String CONSTANT_SCORE- See Also:
- Constant Field Values
-
DIS_MAX
public static final java.lang.String DIS_MAX- See Also:
- Constant Field Values
-
DISTANCE_FEATURE
public static final java.lang.String DISTANCE_FEATURE- See Also:
- Constant Field Values
-
EXISTS
public static final java.lang.String EXISTS- See Also:
- Constant Field Values
-
FUNCTION_SCORE
public static final java.lang.String FUNCTION_SCORE- See Also:
- Constant Field Values
-
FUZZY
public static final java.lang.String FUZZY- See Also:
- Constant Field Values
-
GEO_BOUNDING_BOX
public static final java.lang.String GEO_BOUNDING_BOX- See Also:
- Constant Field Values
-
GEO_DISTANCE
public static final java.lang.String GEO_DISTANCE- See Also:
- Constant Field Values
-
GEO_POLYGON
public static final java.lang.String GEO_POLYGON- See Also:
- Constant Field Values
-
GEO_SHAPE
public static final java.lang.String GEO_SHAPE- See Also:
- Constant Field Values
-
HAS_CHILD
public static final java.lang.String HAS_CHILD- See Also:
- Constant Field Values
-
HAS_PARENT
public static final java.lang.String HAS_PARENT- See Also:
- Constant Field Values
-
IDS
public static final java.lang.String IDS- See Also:
- Constant Field Values
-
INTERVALS
public static final java.lang.String INTERVALS- See Also:
- Constant Field Values
-
MATCH
public static final java.lang.String MATCH- See Also:
- Constant Field Values
-
MATCH_ALL
public static final java.lang.String MATCH_ALL- See Also:
- Constant Field Values
-
MATCH_BOOL_PREFIX
public static final java.lang.String MATCH_BOOL_PREFIX- See Also:
- Constant Field Values
-
MATCH_NONE
public static final java.lang.String MATCH_NONE- See Also:
- Constant Field Values
-
MATCH_PHRASE
public static final java.lang.String MATCH_PHRASE- See Also:
- Constant Field Values
-
MATCH_PHRASE_PREFIX
public static final java.lang.String MATCH_PHRASE_PREFIX- See Also:
- Constant Field Values
-
MORE_LIKE_THIS
public static final java.lang.String MORE_LIKE_THIS- See Also:
- Constant Field Values
-
MULTI_MATCH
public static final java.lang.String MULTI_MATCH- See Also:
- Constant Field Values
-
NESTED
public static final java.lang.String NESTED- See Also:
- Constant Field Values
-
PARENT_ID
public static final java.lang.String PARENT_ID- See Also:
- Constant Field Values
-
PERCOLATE
public static final java.lang.String PERCOLATE- See Also:
- Constant Field Values
-
PINNED
public static final java.lang.String PINNED- See Also:
- Constant Field Values
-
PREFIX
public static final java.lang.String PREFIX- See Also:
- Constant Field Values
-
QUERY_STRING
public static final java.lang.String QUERY_STRING- See Also:
- Constant Field Values
-
RANGE
public static final java.lang.String RANGE- See Also:
- Constant Field Values
-
RANK_FEATURE
public static final java.lang.String RANK_FEATURE- See Also:
- Constant Field Values
-
REGEXP
public static final java.lang.String REGEXP- See Also:
- Constant Field Values
-
SCRIPT
public static final java.lang.String SCRIPT- See Also:
- Constant Field Values
-
SCRIPT_SCORE
public static final java.lang.String SCRIPT_SCORE- See Also:
- Constant Field Values
-
SHAPE
public static final java.lang.String SHAPE- See Also:
- Constant Field Values
-
SIMPLE_QUERY_STRING
public static final java.lang.String SIMPLE_QUERY_STRING- See Also:
- Constant Field Values
-
SPAN_CONTAINING
public static final java.lang.String SPAN_CONTAINING- See Also:
- Constant Field Values
-
FIELD_MASKING_SPAN
public static final java.lang.String FIELD_MASKING_SPAN- See Also:
- Constant Field Values
-
SPAN_FIRST
public static final java.lang.String SPAN_FIRST- See Also:
- Constant Field Values
-
SPAN_MULTI
public static final java.lang.String SPAN_MULTI- See Also:
- Constant Field Values
-
SPAN_NEAR
public static final java.lang.String SPAN_NEAR- See Also:
- Constant Field Values
-
SPAN_NOT
public static final java.lang.String SPAN_NOT- See Also:
- Constant Field Values
-
SPAN_OR
public static final java.lang.String SPAN_OR- See Also:
- Constant Field Values
-
SPAN_TERM
public static final java.lang.String SPAN_TERM- See Also:
- Constant Field Values
-
SPAN_WITHIN
public static final java.lang.String SPAN_WITHIN- See Also:
- Constant Field Values
-
TERM
public static final java.lang.String TERM- See Also:
- Constant Field Values
-
TERMS
public static final java.lang.String TERMS- See Also:
- Constant Field Values
-
TERMS_SET
public static final java.lang.String TERMS_SET- See Also:
- Constant Field Values
-
WILDCARD
public static final java.lang.String WILDCARD- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Query
-
Query
-
Query
-
-
Method Details
-
_variantType
public java.lang.String _variantType()Aggregationvariant type- Specified by:
_variantTypein interfaceUnionVariant
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<java.lang.Object>- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<java.lang.Object>
-
bool
Get theboolvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theboolkind.
-
boosting
Get theboostingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theboostingkind.
-
common
Get thecommonvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecommonkind.
-
combinedFields
Get thecombined_fieldsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecombined_fieldskind.
-
constantScore
Get theconstant_scorevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theconstant_scorekind.
-
disMax
Get thedis_maxvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedis_maxkind.
-
distanceFeature
public jakarta.json.JsonValue distanceFeature()Get thedistance_featurevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedistance_featurekind.
-
exists
Get theexistsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theexistskind.
-
functionScore
Get thefunction_scorevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefunction_scorekind.
-
fuzzy
Get thefuzzyvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefuzzykind.
-
geoBoundingBox
Get thegeo_bounding_boxvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_bounding_boxkind.
-
geoDistance
Get thegeo_distancevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_distancekind.
-
geoPolygon
Get thegeo_polygonvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_polygonkind.
-
geoShape
Get thegeo_shapevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_shapekind.
-
hasChild
Get thehas_childvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehas_childkind.
-
hasParent
Get thehas_parentvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehas_parentkind.
-
ids
Get theidsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theidskind.
-
intervals
Get theintervalsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theintervalskind.
-
match
Get thematchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematchkind.
-
matchAll
Get thematch_allvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_allkind.
-
matchBoolPrefix
Get thematch_bool_prefixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_bool_prefixkind.
-
matchNone
Get thematch_nonevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_nonekind.
-
matchPhrase
Get thematch_phrasevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_phrasekind.
-
matchPhrasePrefix
Get thematch_phrase_prefixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thematch_phrase_prefixkind.
-
moreLikeThis
Get themore_like_thisvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themore_like_thiskind.
-
multiMatch
Get themulti_matchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themulti_matchkind.
-
nested
Get thenestedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenestedkind.
-
parentId
Get theparent_idvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theparent_idkind.
-
percolate
Get thepercolatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepercolatekind.
-
pinned
Get thepinnedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepinnedkind.
-
prefix
Get theprefixvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theprefixkind.
-
queryString
Get thequery_stringvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thequery_stringkind.
-
range
public jakarta.json.JsonValue range()Get therangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therangekind.
-
rankFeature
Get therank_featurevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therank_featurekind.
-
regexp
Get theregexpvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theregexpkind.
-
script
Get thescriptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescriptkind.
-
scriptScore
Get thescript_scorevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescript_scorekind.
-
shape
Get theshapevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theshapekind.
-
simpleQueryString
Get thesimple_query_stringvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesimple_query_stringkind.
-
spanContaining
Get thespan_containingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_containingkind.
-
fieldMaskingSpan
Get thefield_masking_spanvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefield_masking_spankind.
-
spanFirst
Get thespan_firstvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_firstkind.
-
spanMulti
Get thespan_multivariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_multikind.
-
spanNear
Get thespan_nearvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_nearkind.
-
spanNot
Get thespan_notvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_notkind.
-
spanOr
Get thespan_orvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_orkind.
-
spanTerm
Get thespan_termvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_termkind.
-
spanWithin
Get thespan_withinvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thespan_withinkind.
-
term
Get thetermvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetermkind.
-
terms
Get thetermsvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetermskind.
-
termsSet
Get theterms_setvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theterms_setkind.
-
wildcard
Get thewildcardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewildcardkind.
-
type
Get thetypevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetypekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupQueryDeserializer
-