Class GeoShapeFieldMapper.GeoShapeFieldType

  • All Implemented Interfaces:
    org.apache.lucene.index.IndexableFieldType
    Enclosing class:
    GeoShapeFieldMapper

    public static final class GeoShapeFieldMapper.GeoShapeFieldType
    extends MappedFieldType
    • Method Detail

      • 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
      • freeze

        public void freeze()
        Overrides:
        freeze in class org.apache.lucene.document.FieldType
      • checkCompatibility

        public void checkCompatibility​(MappedFieldType fieldType,
                                       java.util.List<java.lang.String> conflicts,
                                       boolean strict)
        Description copied from class: MappedFieldType
        Checks for any conflicts between this field type and other. If strict is true, all properties must be equal. Otherwise, only properties which must never change in an index are checked.
        Overrides:
        checkCompatibility in class MappedFieldType
      • tree

        public java.lang.String tree()
      • setTree

        public void setTree​(java.lang.String tree)
      • strategyName

        public java.lang.String strategyName()
      • setStrategyName

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

        public org.apache.lucene.spatial.prefix.PrefixTreeStrategy defaultStrategy()
      • resolveStrategy

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

        public org.apache.lucene.spatial.prefix.PrefixTreeStrategy resolveStrategy​(java.lang.String strategyName)
      • termQuery

        public org.apache.lucene.search.Query termQuery​(java.lang.Object value,
                                                        QueryShardContext context)
        Description copied from class: MappedFieldType
        Generates a query that will only match documents that contain the given value. The default implementation returns a TermQuery over the value bytes, boosted by MappedFieldType.boost().
        Specified by:
        termQuery in class MappedFieldType