Package org.elasticsearch.index.mapper
Class GeoShapeIndexer
java.lang.Object
org.elasticsearch.index.mapper.GeoShapeIndexer
- All Implemented Interfaces:
AbstractGeometryFieldMapper.Indexer<Geometry,Geometry>
public final class GeoShapeIndexer extends java.lang.Object implements AbstractGeometryFieldMapper.Indexer<Geometry,Geometry>
Utility class that converts geometries into Lucene-compatible form for indexing in a geo_shape field.
-
Constructor Summary
Constructors Constructor Description GeoShapeIndexer(boolean orientation, java.lang.String name)
-
Method Summary
Modifier and Type Method Description java.util.List<org.apache.lucene.index.IndexableField>
indexShape(ParseContext context, Geometry shape)
Geometry
prepareForIndexing(Geometry geometry)
java.lang.Class<Geometry>
processedClass()
-
Constructor Details
-
GeoShapeIndexer
public GeoShapeIndexer(boolean orientation, java.lang.String name)
-
-
Method Details
-
prepareForIndexing
- Specified by:
prepareForIndexing
in interfaceAbstractGeometryFieldMapper.Indexer<Geometry,Geometry>
-
processedClass
- Specified by:
processedClass
in interfaceAbstractGeometryFieldMapper.Indexer<Geometry,Geometry>
-
indexShape
public java.util.List<org.apache.lucene.index.IndexableField> indexShape(ParseContext context, Geometry shape)- Specified by:
indexShape
in interfaceAbstractGeometryFieldMapper.Indexer<Geometry,Geometry>
-