Class GeoBoundingBoxQuery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder<GeoBoundingBoxQuery.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.GeoBoundingBoxQuery.Builder
- All Implemented Interfaces:
WithJson<GeoBoundingBoxQuery.Builder>,ObjectBuilder<GeoBoundingBoxQuery>
- Enclosing class:
- GeoBoundingBoxQuery
public static class GeoBoundingBoxQuery.Builder
extends QueryBase.AbstractBuilder<GeoBoundingBoxQuery.Builder>
implements ObjectBuilder<GeoBoundingBoxQuery>
Builder for
GeoBoundingBoxQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboundingBox(GeoBounds value) Required -Required -build()Builds aGeoBoundingBoxQuery.Required -ignoreUnmapped(Boolean value) Set totrueto ignore an unmapped field and not match any documents for this query.protected GeoBoundingBoxQuery.Builderself()type(GeoExecution value) Deprecated.7.14.0Set toIGNORE_MALFORMEDto accept geo points with invalid latitude or longitude.Methods 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
-
field
Required - -
boundingBox
Required - -
boundingBox
public final GeoBoundingBoxQuery.Builder boundingBox(Function<GeoBounds.Builder, ObjectBuilder<GeoBounds>> fn) Required - -
type
Deprecated.7.14.0API name:type -
validationMethod
Set toIGNORE_MALFORMEDto accept geo points with invalid latitude or longitude. Set toCOERCEto also try to infer correct latitude or longitude.API name:
validation_method -
ignoreUnmapped
Set totrueto ignore an unmapped field and not match any documents for this query. Set tofalseto throw an exception if the field is not mapped.API name:
ignore_unmapped -
self
- Specified by:
selfin classQueryBase.AbstractBuilder<GeoBoundingBoxQuery.Builder>
-
build
Builds aGeoBoundingBoxQuery.- Specified by:
buildin interfaceObjectBuilder<GeoBoundingBoxQuery>- Throws:
NullPointerException- if some of the required fields are null.
-