Class LegacyGeoShapeFieldMapper.GeoShapeFieldType

All Implemented Interfaces:
GeoShapeQueryable
Enclosing class:
LegacyGeoShapeFieldMapper

public static final class LegacyGeoShapeFieldMapper.GeoShapeFieldType extends AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType<ShapeBuilder<?,​?,​?>> implements GeoShapeQueryable
  • Constructor Details

    • GeoShapeFieldType

      public GeoShapeFieldType(String name)
  • Method Details

    • geoShapeQuery

      public org.apache.lucene.search.Query geoShapeQuery(org.elasticsearch.geometry.Geometry shape, String fieldName, ShapeRelation relation, SearchExecutionContext context)
      Specified by:
      geoShapeQuery in interface GeoShapeQueryable
    • geoShapeQuery

      public org.apache.lucene.search.Query geoShapeQuery(org.elasticsearch.geometry.Geometry shape, String fieldName, SpatialStrategy strategy, ShapeRelation relation, SearchExecutionContext context)
      Specified by:
      geoShapeQuery in interface GeoShapeQueryable
    • typeName

      public String typeName()
      Description copied from class: MappedFieldType
      Returns the name of this type, as would be specified in mapping properties
      Specified by:
      typeName in class MappedFieldType
    • tree

      public String tree()
    • setTree

      public void setTree(String tree)
    • strategy

      public SpatialStrategy strategy()
    • setStrategy

      public void setStrategy(SpatialStrategy strategy)
    • pointsOnly

      public boolean pointsOnly()
    • setPointsOnly

      public void setPointsOnly(boolean pointsOnly)
    • treeLevels

      public int treeLevels()
    • setTreeLevels

      public void setTreeLevels(int treeLevels)
    • precisionInMeters

      public double precisionInMeters()
    • setPrecisionInMeters

      public void setPrecisionInMeters(double precisionInMeters)
    • distanceErrorPct

      public double distanceErrorPct()
    • setDistanceErrorPct

      public void setDistanceErrorPct(double distanceErrorPct)
    • setDefaultDistanceErrorPct

      public void setDefaultDistanceErrorPct(double defaultDistanceErrorPct)
    • defaultPrefixTreeStrategy

      public org.apache.lucene.spatial.prefix.PrefixTreeStrategy defaultPrefixTreeStrategy()
    • resolvePrefixTreeStrategy

      public org.apache.lucene.spatial.prefix.PrefixTreeStrategy resolvePrefixTreeStrategy(SpatialStrategy strategy)
    • resolvePrefixTreeStrategy

      public org.apache.lucene.spatial.prefix.PrefixTreeStrategy resolvePrefixTreeStrategy(String strategyName)
    • getFormatter

      protected Function<List<ShapeBuilder<?,​?,​?>>,​List<Object>> getFormatter(String format)
      Gets the formatter by name.
      Specified by:
      getFormatter in class AbstractGeometryFieldMapper.AbstractGeometryFieldType<ShapeBuilder<?,​?,​?>>