| Package | Description |
|---|---|
| org.elasticsearch.common.geo | |
| org.elasticsearch.index.query |
| Modifier and Type | Method and Description |
|---|---|
static ShapeRelation |
ShapeRelation.getRelationByName(String name) |
static ShapeRelation |
ShapeRelation.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShapeRelation[] |
ShapeRelation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static GeoShapeQueryBuilder |
QueryBuilders.geoShapeQuery(String name,
ShapeBuilder shape,
ShapeRelation relation)
A filter based on the relationship of a shape and indexed shapes
|
static GeoShapeQueryBuilder |
QueryBuilders.geoShapeQuery(String name,
String indexedShapeId,
String indexedShapeType,
ShapeRelation relation) |
static org.apache.lucene.spatial.query.SpatialArgs |
GeoShapeQueryParser.getArgs(ShapeBuilder shape,
ShapeRelation relation) |
GeoShapeQueryBuilder |
GeoShapeQueryBuilder.relation(ShapeRelation relation)
Sets the relation of query shape and indexed shape.
|
| Constructor and Description |
|---|
GeoShapeQueryBuilder(String name,
ShapeBuilder shape,
ShapeRelation relation)
Creates a new GeoShapeQueryBuilder whose Filter will be against the
given field name using the given Shape
|
GeoShapeQueryBuilder(String name,
String indexedShapeId,
String indexedShapeType,
ShapeRelation relation)
Creates a new GeoShapeQueryBuilder whose Filter will be against the given field name
and will use the Shape found with the given ID in the given type
|
Copyright © 2009–2017. All rights reserved.