Package org.elasticsearch.index.mapper
Class LegacyGeoShapeFieldMapper.GeoShapeFieldType
java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType<Parsed,Processed>
org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper.GeoShapeFieldType
- Enclosing class:
- LegacyGeoShapeFieldMapper
public static final class LegacyGeoShapeFieldMapper.GeoShapeFieldType extends AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType<ShapeBuilder<?,?,?>,org.locationtech.spatial4j.shape.Shape>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
AbstractGeometryFieldMapper.AbstractGeometryFieldType.QueryProcessorNested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.Relation -
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType
orientationFields inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
geometryIndexer, geometryParser, geometryQueryBuilder -
Constructor Summary
Constructors Constructor Description GeoShapeFieldType(java.lang.String name)GeoShapeFieldType(java.lang.String name, boolean indexed, boolean hasDocValues, java.util.Map<java.lang.String,java.lang.String> meta) -
Method Summary
Modifier and Type Method Description org.apache.lucene.spatial.prefix.PrefixTreeStrategydefaultPrefixTreeStrategy()doubledistanceErrorPct()booleanpointsOnly()doubleprecisionInMeters()org.apache.lucene.spatial.prefix.PrefixTreeStrategyresolvePrefixTreeStrategy(java.lang.String strategyName)org.apache.lucene.spatial.prefix.PrefixTreeStrategyresolvePrefixTreeStrategy(SpatialStrategy strategy)voidsetDefaultDistanceErrorPct(double defaultDistanceErrorPct)voidsetDistanceErrorPct(double distanceErrorPct)voidsetPointsOnly(boolean pointsOnly)voidsetPrecisionInMeters(double precisionInMeters)voidsetStrategy(SpatialStrategy strategy)voidsetTree(java.lang.String tree)voidsetTreeLevels(int treeLevels)SpatialStrategystrategy()java.lang.Stringtree()inttreeLevels()java.lang.StringtypeName()Returns the name of this type, as would be specified in mapping propertiesMethods inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType
orientation, setOrientationMethods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
existsQuery, geometryIndexer, geometryParser, geometryQueryBuilder, setGeometryIndexer, setGeometryParser, setGeometryQueryBuilder, termQueryMethods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, familyTypeName, fielddataBuilder, fuzzyQuery, getTextSearchInfo, hasDocValues, indexAnalyzer, intervals, isAggregatable, isFieldWithinQuery, isSearchable, meta, multiPhraseQuery, name, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixQuery, rangeQuery, regexpQuery, setBoost, setEagerGlobalOrdinals, setIndexAnalyzer, spanPrefixQuery, termsQuery, updateMeta, valueForDisplay, wildcardQuery
-
Constructor Details
-
GeoShapeFieldType
public GeoShapeFieldType(java.lang.String name, boolean indexed, boolean hasDocValues, java.util.Map<java.lang.String,java.lang.String> meta) -
GeoShapeFieldType
public GeoShapeFieldType(java.lang.String name)
-
-
Method Details
-
typeName
public java.lang.String typeName()Description copied from class:MappedFieldTypeReturns the name of this type, as would be specified in mapping properties- Specified by:
typeNamein classMappedFieldType
-
tree
public java.lang.String tree() -
setTree
public void setTree(java.lang.String tree) -
strategy
-
setStrategy
-
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)
-