Class QueryBuilders
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBuilders
Builders for
Query variants.-
Method Summary
Modifier and TypeMethodDescriptionstatic BoolQuery.Builderbool()Creates a builder for theboolQueryvariant.static QueryCreates a Query of theboolQueryvariant.static BoostingQuery.Builderboosting()Creates a builder for theboostingQueryvariant.static QueryCreates a Query of theboostingQueryvariant.static CombinedFieldsQuery.BuilderCreates a builder for thecombined_fieldsQueryvariant.static QueryCreates a Query of thecombined_fieldsQueryvariant.static CommonTermsQuery.Buildercommon()Creates a builder for thecommonQueryvariant.static QueryCreates a Query of thecommonQueryvariant.static ConstantScoreQuery.BuilderCreates a builder for theconstant_scoreQueryvariant.static QueryCreates a Query of theconstant_scoreQueryvariant.static DisMaxQuery.BuilderdisMax()Creates a builder for thedis_maxQueryvariant.static QueryCreates a Query of thedis_maxQueryvariant.static DistanceFeatureQuery.BuilderCreates a builder for thedistance_featureQueryvariant.static QueryCreates a Query of thedistance_featureQueryvariant.static ExistsQuery.Builderexists()Creates a builder for theexistsQueryvariant.static QueryCreates a Query of theexistsQueryvariant.Creates a builder for thefield_masking_spanQueryvariant.static QueryCreates a Query of thefield_masking_spanQueryvariant.static FunctionScoreQuery.BuilderCreates a builder for thefunction_scoreQueryvariant.static QueryCreates a Query of thefunction_scoreQueryvariant.static FuzzyQuery.Builderfuzzy()Creates a builder for thefuzzyQueryvariant.static QueryCreates a Query of thefuzzyQueryvariant.static GeoBoundingBoxQuery.BuilderCreates a builder for thegeo_bounding_boxQueryvariant.static QueryCreates a Query of thegeo_bounding_boxQueryvariant.static GeoDistanceQuery.BuilderCreates a builder for thegeo_distanceQueryvariant.static QueryCreates a Query of thegeo_distanceQueryvariant.static GeoPolygonQuery.BuilderCreates a builder for thegeo_polygonQueryvariant.static QueryCreates a Query of thegeo_polygonQueryvariant.static GeoShapeQuery.BuildergeoShape()Creates a builder for thegeo_shapeQueryvariant.static QueryCreates a Query of thegeo_shapeQueryvariant.static HasChildQuery.BuilderhasChild()Creates a builder for thehas_childQueryvariant.static QueryCreates a Query of thehas_childQueryvariant.static HasParentQuery.BuilderCreates a builder for thehas_parentQueryvariant.static QueryCreates a Query of thehas_parentQueryvariant.static IdsQuery.Builderids()Creates a builder for theidsQueryvariant.static QueryCreates a Query of theidsQueryvariant.static IntervalsQuery.BuilderCreates a builder for theintervalsQueryvariant.static QueryCreates a Query of theintervalsQueryvariant.static MatchQuery.Buildermatch()Creates a builder for thematchQueryvariant.static QueryCreates a Query of thematchQueryvariant.static MatchAllQuery.BuildermatchAll()Creates a builder for thematch_allQueryvariant.static QueryCreates a Query of thematch_allQueryvariant.static MatchBoolPrefixQuery.BuilderCreates a builder for thematch_bool_prefixQueryvariant.static QueryCreates a Query of thematch_bool_prefixQueryvariant.static MatchNoneQuery.BuilderCreates a builder for thematch_noneQueryvariant.static QueryCreates a Query of thematch_noneQueryvariant.static MatchPhraseQuery.BuilderCreates a builder for thematch_phraseQueryvariant.static QueryCreates a Query of thematch_phraseQueryvariant.Creates a builder for thematch_phrase_prefixQueryvariant.static QuerymatchPhrasePrefix(Function<MatchPhrasePrefixQuery.Builder, ObjectBuilder<MatchPhrasePrefixQuery>> fn) Creates a Query of thematch_phrase_prefixQueryvariant.static MoreLikeThisQuery.BuilderCreates a builder for themore_like_thisQueryvariant.static QueryCreates a Query of themore_like_thisQueryvariant.static MultiMatchQuery.BuilderCreates a builder for themulti_matchQueryvariant.static QueryCreates a Query of themulti_matchQueryvariant.static NestedQuery.Buildernested()Creates a builder for thenestedQueryvariant.static QueryCreates a Query of thenestedQueryvariant.static ParentIdQuery.BuilderparentId()Creates a builder for theparent_idQueryvariant.static QueryCreates a Query of theparent_idQueryvariant.static PercolateQuery.BuilderCreates a builder for thepercolateQueryvariant.static QueryCreates a Query of thepercolateQueryvariant.static PinnedQuery.Builderpinned()Creates a builder for thepinnedQueryvariant.static QueryCreates a Query of thepinnedQueryvariant.static PrefixQuery.Builderprefix()Creates a builder for theprefixQueryvariant.static QueryCreates a Query of theprefixQueryvariant.static QueryStringQuery.BuilderCreates a builder for thequery_stringQueryvariant.static QueryCreates a Query of thequery_stringQueryvariant.static RangeQuery.Builderrange()Creates a builder for therangeQueryvariant.static QueryCreates a Query of therangeQueryvariant.static RankFeatureQuery.BuilderCreates a builder for therank_featureQueryvariant.static QueryCreates a Query of therank_featureQueryvariant.static RegexpQuery.Builderregexp()Creates a builder for theregexpQueryvariant.static QueryCreates a Query of theregexpQueryvariant.static ScriptQuery.Builderscript()Creates a builder for thescriptQueryvariant.static QueryCreates a Query of thescriptQueryvariant.static ScriptScoreQuery.BuilderCreates a builder for thescript_scoreQueryvariant.static QueryCreates a Query of thescript_scoreQueryvariant.static ShapeQuery.Buildershape()Creates a builder for theshapeQueryvariant.static QueryCreates a Query of theshapeQueryvariant.Creates a builder for thesimple_query_stringQueryvariant.static QuerysimpleQueryString(Function<SimpleQueryStringQuery.Builder, ObjectBuilder<SimpleQueryStringQuery>> fn) Creates a Query of thesimple_query_stringQueryvariant.static SpanContainingQuery.BuilderCreates a builder for thespan_containingQueryvariant.static QueryCreates a Query of thespan_containingQueryvariant.static SpanFirstQuery.BuilderCreates a builder for thespan_firstQueryvariant.static QueryCreates a Query of thespan_firstQueryvariant.static SpanMultiTermQuery.BuilderCreates a builder for thespan_multiQueryvariant.static QueryCreates a Query of thespan_multiQueryvariant.static SpanNearQuery.BuilderspanNear()Creates a builder for thespan_nearQueryvariant.static QueryCreates a Query of thespan_nearQueryvariant.static SpanNotQuery.BuilderspanNot()Creates a builder for thespan_notQueryvariant.static QueryCreates a Query of thespan_notQueryvariant.static SpanOrQuery.BuilderspanOr()Creates a builder for thespan_orQueryvariant.static QueryCreates a Query of thespan_orQueryvariant.static SpanTermQuery.BuilderspanTerm()Creates a builder for thespan_termQueryvariant.static QueryCreates a Query of thespan_termQueryvariant.static SpanWithinQuery.BuilderCreates a builder for thespan_withinQueryvariant.static QueryCreates a Query of thespan_withinQueryvariant.static TermQuery.Builderterm()Creates a builder for thetermQueryvariant.static QueryCreates a Query of thetermQueryvariant.static TermsQuery.Builderterms()Creates a builder for thetermsQueryvariant.static QueryCreates a Query of thetermsQueryvariant.static TermsSetQuery.BuildertermsSet()Creates a builder for theterms_setQueryvariant.static QueryCreates a Query of theterms_setQueryvariant.static TextExpansionQuery.BuilderCreates a builder for thetext_expansionQueryvariant.static QueryCreates a Query of thetext_expansionQueryvariant.static TypeQuery.Buildertype()Creates a builder for thetypeQueryvariant.static QueryCreates a Query of thetypeQueryvariant.static WildcardQuery.Builderwildcard()Creates a builder for thewildcardQueryvariant.static QueryCreates a Query of thewildcardQueryvariant.static WrapperQuery.Builderwrapper()Creates a builder for thewrapperQueryvariant.static QueryCreates a Query of thewrapperQueryvariant.
-
Method Details
-
bool
Creates a builder for theboolQueryvariant. -
bool
Creates a Query of theboolQueryvariant. -
boosting
Creates a builder for theboostingQueryvariant. -
boosting
Creates a Query of theboostingQueryvariant. -
common
Creates a builder for thecommonQueryvariant. -
common
Creates a Query of thecommonQueryvariant. -
combinedFields
Creates a builder for thecombined_fieldsQueryvariant. -
combinedFields
public static Query combinedFields(Function<CombinedFieldsQuery.Builder, ObjectBuilder<CombinedFieldsQuery>> fn) Creates a Query of thecombined_fieldsQueryvariant. -
constantScore
Creates a builder for theconstant_scoreQueryvariant. -
constantScore
public static Query constantScore(Function<ConstantScoreQuery.Builder, ObjectBuilder<ConstantScoreQuery>> fn) Creates a Query of theconstant_scoreQueryvariant. -
disMax
Creates a builder for thedis_maxQueryvariant. -
disMax
Creates a Query of thedis_maxQueryvariant. -
distanceFeature
Creates a builder for thedistance_featureQueryvariant. -
distanceFeature
public static Query distanceFeature(Function<DistanceFeatureQuery.Builder, ObjectBuilder<DistanceFeatureQuery>> fn) Creates a Query of thedistance_featureQueryvariant. -
exists
Creates a builder for theexistsQueryvariant. -
exists
Creates a Query of theexistsQueryvariant. -
functionScore
Creates a builder for thefunction_scoreQueryvariant. -
functionScore
public static Query functionScore(Function<FunctionScoreQuery.Builder, ObjectBuilder<FunctionScoreQuery>> fn) Creates a Query of thefunction_scoreQueryvariant. -
fuzzy
Creates a builder for thefuzzyQueryvariant. -
fuzzy
Creates a Query of thefuzzyQueryvariant. -
geoBoundingBox
Creates a builder for thegeo_bounding_boxQueryvariant. -
geoBoundingBox
public static Query geoBoundingBox(Function<GeoBoundingBoxQuery.Builder, ObjectBuilder<GeoBoundingBoxQuery>> fn) Creates a Query of thegeo_bounding_boxQueryvariant. -
geoDistance
Creates a builder for thegeo_distanceQueryvariant. -
geoDistance
public static Query geoDistance(Function<GeoDistanceQuery.Builder, ObjectBuilder<GeoDistanceQuery>> fn) Creates a Query of thegeo_distanceQueryvariant. -
geoPolygon
Creates a builder for thegeo_polygonQueryvariant. -
geoPolygon
Creates a Query of thegeo_polygonQueryvariant. -
geoShape
Creates a builder for thegeo_shapeQueryvariant. -
geoShape
Creates a Query of thegeo_shapeQueryvariant. -
hasChild
Creates a builder for thehas_childQueryvariant. -
hasChild
Creates a Query of thehas_childQueryvariant. -
hasParent
Creates a builder for thehas_parentQueryvariant. -
hasParent
Creates a Query of thehas_parentQueryvariant. -
ids
Creates a builder for theidsQueryvariant. -
ids
Creates a Query of theidsQueryvariant. -
intervals
Creates a builder for theintervalsQueryvariant. -
intervals
Creates a Query of theintervalsQueryvariant. -
match
Creates a builder for thematchQueryvariant. -
match
Creates a Query of thematchQueryvariant. -
matchAll
Creates a builder for thematch_allQueryvariant. -
matchAll
Creates a Query of thematch_allQueryvariant. -
matchBoolPrefix
Creates a builder for thematch_bool_prefixQueryvariant. -
matchBoolPrefix
public static Query matchBoolPrefix(Function<MatchBoolPrefixQuery.Builder, ObjectBuilder<MatchBoolPrefixQuery>> fn) Creates a Query of thematch_bool_prefixQueryvariant. -
matchNone
Creates a builder for thematch_noneQueryvariant. -
matchNone
Creates a Query of thematch_noneQueryvariant. -
matchPhrase
Creates a builder for thematch_phraseQueryvariant. -
matchPhrase
public static Query matchPhrase(Function<MatchPhraseQuery.Builder, ObjectBuilder<MatchPhraseQuery>> fn) Creates a Query of thematch_phraseQueryvariant. -
matchPhrasePrefix
Creates a builder for thematch_phrase_prefixQueryvariant. -
matchPhrasePrefix
public static Query matchPhrasePrefix(Function<MatchPhrasePrefixQuery.Builder, ObjectBuilder<MatchPhrasePrefixQuery>> fn) Creates a Query of thematch_phrase_prefixQueryvariant. -
moreLikeThis
Creates a builder for themore_like_thisQueryvariant. -
moreLikeThis
public static Query moreLikeThis(Function<MoreLikeThisQuery.Builder, ObjectBuilder<MoreLikeThisQuery>> fn) Creates a Query of themore_like_thisQueryvariant. -
multiMatch
Creates a builder for themulti_matchQueryvariant. -
multiMatch
Creates a Query of themulti_matchQueryvariant. -
nested
Creates a builder for thenestedQueryvariant. -
nested
Creates a Query of thenestedQueryvariant. -
parentId
Creates a builder for theparent_idQueryvariant. -
parentId
Creates a Query of theparent_idQueryvariant. -
percolate
Creates a builder for thepercolateQueryvariant. -
percolate
Creates a Query of thepercolateQueryvariant. -
pinned
Creates a builder for thepinnedQueryvariant. -
pinned
Creates a Query of thepinnedQueryvariant. -
prefix
Creates a builder for theprefixQueryvariant. -
prefix
Creates a Query of theprefixQueryvariant. -
queryString
Creates a builder for thequery_stringQueryvariant. -
queryString
public static Query queryString(Function<QueryStringQuery.Builder, ObjectBuilder<QueryStringQuery>> fn) Creates a Query of thequery_stringQueryvariant. -
range
Creates a builder for therangeQueryvariant. -
range
Creates a Query of therangeQueryvariant. -
rankFeature
Creates a builder for therank_featureQueryvariant. -
rankFeature
public static Query rankFeature(Function<RankFeatureQuery.Builder, ObjectBuilder<RankFeatureQuery>> fn) Creates a Query of therank_featureQueryvariant. -
regexp
Creates a builder for theregexpQueryvariant. -
regexp
Creates a Query of theregexpQueryvariant. -
script
Creates a builder for thescriptQueryvariant. -
script
Creates a Query of thescriptQueryvariant. -
scriptScore
Creates a builder for thescript_scoreQueryvariant. -
scriptScore
public static Query scriptScore(Function<ScriptScoreQuery.Builder, ObjectBuilder<ScriptScoreQuery>> fn) Creates a Query of thescript_scoreQueryvariant. -
shape
Creates a builder for theshapeQueryvariant. -
shape
Creates a Query of theshapeQueryvariant. -
simpleQueryString
Creates a builder for thesimple_query_stringQueryvariant. -
simpleQueryString
public static Query simpleQueryString(Function<SimpleQueryStringQuery.Builder, ObjectBuilder<SimpleQueryStringQuery>> fn) Creates a Query of thesimple_query_stringQueryvariant. -
spanContaining
Creates a builder for thespan_containingQueryvariant. -
spanContaining
public static Query spanContaining(Function<SpanContainingQuery.Builder, ObjectBuilder<SpanContainingQuery>> fn) Creates a Query of thespan_containingQueryvariant. -
fieldMaskingSpan
Creates a builder for thefield_masking_spanQueryvariant. -
fieldMaskingSpan
public static Query fieldMaskingSpan(Function<SpanFieldMaskingQuery.Builder, ObjectBuilder<SpanFieldMaskingQuery>> fn) Creates a Query of thefield_masking_spanQueryvariant. -
spanFirst
Creates a builder for thespan_firstQueryvariant. -
spanFirst
Creates a Query of thespan_firstQueryvariant. -
spanMulti
Creates a builder for thespan_multiQueryvariant. -
spanMulti
public static Query spanMulti(Function<SpanMultiTermQuery.Builder, ObjectBuilder<SpanMultiTermQuery>> fn) Creates a Query of thespan_multiQueryvariant. -
spanNear
Creates a builder for thespan_nearQueryvariant. -
spanNear
Creates a Query of thespan_nearQueryvariant. -
spanNot
Creates a builder for thespan_notQueryvariant. -
spanNot
Creates a Query of thespan_notQueryvariant. -
spanOr
Creates a builder for thespan_orQueryvariant. -
spanOr
Creates a Query of thespan_orQueryvariant. -
spanTerm
Creates a builder for thespan_termQueryvariant. -
spanTerm
Creates a Query of thespan_termQueryvariant. -
spanWithin
Creates a builder for thespan_withinQueryvariant. -
spanWithin
Creates a Query of thespan_withinQueryvariant. -
term
Creates a builder for thetermQueryvariant. -
term
Creates a Query of thetermQueryvariant. -
terms
Creates a builder for thetermsQueryvariant. -
terms
Creates a Query of thetermsQueryvariant. -
termsSet
Creates a builder for theterms_setQueryvariant. -
termsSet
Creates a Query of theterms_setQueryvariant. -
textExpansion
Creates a builder for thetext_expansionQueryvariant. -
textExpansion
public static Query textExpansion(Function<TextExpansionQuery.Builder, ObjectBuilder<TextExpansionQuery>> fn) Creates a Query of thetext_expansionQueryvariant. -
wildcard
Creates a builder for thewildcardQueryvariant. -
wildcard
Creates a Query of thewildcardQueryvariant. -
wrapper
Creates a builder for thewrapperQueryvariant. -
wrapper
Creates a Query of thewrapperQueryvariant. -
type
Creates a builder for thetypeQueryvariant. -
type
Creates a Query of thetypeQueryvariant.
-