Class LegacyGeoShapeFieldMapper.GeoShapeFieldType

All Implemented Interfaces:
GeoShapeQueryable
Enclosing class:
LegacyGeoShapeFieldMapper

public static final class LegacyGeoShapeFieldMapper.GeoShapeFieldType
extends AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType
implements GeoShapeQueryable
  • Constructor Details

    • GeoShapeFieldType

      public GeoShapeFieldType​(java.lang.String name)
  • Method Details

    • geoShapeQuery

      public org.apache.lucene.search.Query geoShapeQuery​(org.elasticsearch.geometry.Geometry shape, java.lang.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, java.lang.String fieldName, SpatialStrategy strategy, ShapeRelation relation, SearchExecutionContext context)
      Specified by:
      geoShapeQuery in interface GeoShapeQueryable
    • typeName

      public java.lang.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 java.lang.String tree()
    • setTree

      public void setTree​(java.lang.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​(java.lang.String strategyName)