Class GeoShapeQuery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder<GeoShapeQuery.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.GeoShapeQuery.Builder
- All Implemented Interfaces:
ObjectBuilder<GeoShapeQuery>
- Enclosing class:
- GeoShapeQuery
public static class GeoShapeQuery.Builder extends QueryBase.AbstractBuilder<GeoShapeQuery.Builder> implements ObjectBuilder<GeoShapeQuery>
Builder for
GeoShapeQuery
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GeoShapeQuery
build()
Builds aGeoShapeQuery
.GeoShapeQuery.Builder
field(java.lang.String value)
Required -GeoShapeQuery.Builder
ignoreUnmapped(java.lang.Boolean value)
API name:ignore_unmapped
protected GeoShapeQuery.Builder
self()
GeoShapeQuery.Builder
shape(GeoShapeFieldQuery value)
Required -GeoShapeQuery.Builder
shape(java.util.function.Function<GeoShapeFieldQuery.Builder,ObjectBuilder<GeoShapeFieldQuery>> fn)
Required -Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryName
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Required - -
shape
Required - -
shape
public final GeoShapeQuery.Builder shape(java.util.function.Function<GeoShapeFieldQuery.Builder,ObjectBuilder<GeoShapeFieldQuery>> fn)Required - -
ignoreUnmapped
API name:ignore_unmapped
-
self
- Specified by:
self
in classQueryBase.AbstractBuilder<GeoShapeQuery.Builder>
-
build
Builds aGeoShapeQuery
.- Specified by:
build
in interfaceObjectBuilder<GeoShapeQuery>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-