Class BoolQuery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder<BoolQuery.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery.Builder
- All Implemented Interfaces:
WithJson<BoolQuery.Builder>,ObjectBuilder<BoolQuery>
- Enclosing class:
- BoolQuery
public static class BoolQuery.Builder
extends QueryBase.AbstractBuilder<BoolQuery.Builder>
implements ObjectBuilder<BoolQuery>
Builder for
BoolQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aBoolQuery.final BoolQuery.BuilderAPI name:filterfinal BoolQuery.BuilderAPI name:filterfinal BoolQuery.BuilderAPI name:filterfinal BoolQuery.BuilderminimumShouldMatch(String value) API name:minimum_should_matchfinal BoolQuery.BuilderAPI name:mustfinal BoolQuery.BuilderAPI name:mustfinal BoolQuery.BuilderAPI name:mustfinal BoolQuery.BuilderAPI name:must_notfinal BoolQuery.BuilderAPI name:must_notfinal BoolQuery.BuilderAPI name:must_notprotected BoolQuery.Builderself()final BoolQuery.BuilderAPI name:shouldfinal BoolQuery.BuilderAPI name:shouldfinal BoolQuery.BuilderAPI name:shouldMethods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filter
API name:filterAdds all elements of
listtofilter. -
filter
API name:filterAdds one or more values to
filter. -
filter
API name:filterAdds a value to
filterusing a builder lambda. -
minimumShouldMatch
API name:minimum_should_match -
must
API name:mustAdds all elements of
listtomust. -
must
API name:mustAdds one or more values to
must. -
must
API name:mustAdds a value to
mustusing a builder lambda. -
mustNot
API name:must_notAdds all elements of
listtomustNot. -
mustNot
API name:must_notAdds one or more values to
mustNot. -
mustNot
API name:must_notAdds a value to
mustNotusing a builder lambda. -
should
API name:shouldAdds all elements of
listtoshould. -
should
API name:shouldAdds one or more values to
should. -
should
API name:shouldAdds a value to
shouldusing a builder lambda. -
self
- Specified by:
selfin classQueryBase.AbstractBuilder<BoolQuery.Builder>
-
build
Builds aBoolQuery.- Specified by:
buildin interfaceObjectBuilder<BoolQuery>- Throws:
NullPointerException- if some of the required fields are null.
-