java.lang.Object
org.elasticsearch.index.mapper.GeoShapeIndexer
- All Implemented Interfaces:
ShapeIndexer
Utility class that converts geometries into Lucene-compatible form for indexing in a geo_shape field.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList
<org.apache.lucene.index.IndexableField> getIndexableFields
(Geometry geometry) Generates lucene indexable fields from a geometry.List
<org.apache.lucene.index.IndexableField> indexShape
(Geometry geometry) Normalise the geometry, that is make sure latitude and longitude are between expected values and split geometries across the dateline when needed
-
Constructor Details
-
GeoShapeIndexer
-
-
Method Details
-
indexShape
- Specified by:
indexShape
in interfaceShapeIndexer
-
normalize
Normalise the geometry, that is make sure latitude and longitude are between expected values and split geometries across the dateline when needed -
getIndexableFields
Generates lucene indexable fields from a geometry. It expects geometries that have already been normalised.
-