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.QueryProcessor
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.Relation
-
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType
orientation
Fields 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.PrefixTreeStrategy
defaultPrefixTreeStrategy()
double
distanceErrorPct()
boolean
pointsOnly()
double
precisionInMeters()
org.apache.lucene.spatial.prefix.PrefixTreeStrategy
resolvePrefixTreeStrategy(java.lang.String strategyName)
org.apache.lucene.spatial.prefix.PrefixTreeStrategy
resolvePrefixTreeStrategy(SpatialStrategy strategy)
void
setDefaultDistanceErrorPct(double defaultDistanceErrorPct)
void
setDistanceErrorPct(double distanceErrorPct)
void
setPointsOnly(boolean pointsOnly)
void
setPrecisionInMeters(double precisionInMeters)
void
setStrategy(SpatialStrategy strategy)
void
setTree(java.lang.String tree)
void
setTreeLevels(int treeLevels)
SpatialStrategy
strategy()
java.lang.String
tree()
int
treeLevels()
java.lang.String
typeName()
Returns the name of this type, as would be specified in mapping propertiesMethods inherited from class org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType
orientation, setOrientation
Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
existsQuery, geometryIndexer, geometryParser, geometryQueryBuilder, setGeometryIndexer, setGeometryParser, setGeometryQueryBuilder, termQuery
Methods 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:MappedFieldType
Returns the name of this type, as would be specified in mapping properties- Specified by:
typeName
in 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)
-