Package org.elasticsearch.index.mapper
Class LegacyGeoShapeFieldMapper.GeoShapeFieldType
java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType
org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper.GeoShapeFieldType
- All Implemented Interfaces:
GeoShapeQueryable
- Enclosing class:
- LegacyGeoShapeFieldMapper
public static final class LegacyGeoShapeFieldMapper.GeoShapeFieldType extends AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType implements GeoShapeQueryable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.CollapseType, MappedFieldType.Relation -
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
geometryParser, parsesArrayValue -
Constructor Summary
Constructors Constructor Description GeoShapeFieldType(java.lang.String name) -
Method Summary
Modifier and Type Method Description org.apache.lucene.spatial.prefix.PrefixTreeStrategydefaultPrefixTreeStrategy()doubledistanceErrorPct()org.apache.lucene.search.QuerygeoShapeQuery(org.elasticsearch.geometry.Geometry shape, java.lang.String fieldName, ShapeRelation relation, SearchExecutionContext context)org.apache.lucene.search.QuerygeoShapeQuery(org.elasticsearch.geometry.Geometry shape, java.lang.String fieldName, SpatialStrategy strategy, ShapeRelation relation, SearchExecutionContext context)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
orientationMethods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
termQuery, valueFetcherMethods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, collapseType, distanceFeatureQuery, docValueFormat, eagerGlobalOrdinals, existsQuery, extractTerm, failIfNoDocValues, failIfNotIndexed, familyTypeName, fielddataBuilder, fuzzyQuery, getTextSearchInfo, hasDocValues, intervals, isAggregatable, isFieldWithinQuery, isSearchable, isStored, meta, multiPhraseQuery, name, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixQuery, prefixQuery, rangeQuery, regexpQuery, setBoost, setEagerGlobalOrdinals, spanPrefixQuery, termQueryCaseInsensitive, termsQuery, valueForDisplay, wildcardQuery, wildcardQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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:
geoShapeQueryin interfaceGeoShapeQueryable
-
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:
geoShapeQueryin interfaceGeoShapeQueryable
-
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)
-