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.PrefixTreeStrategy
defaultPrefixTreeStrategy()
double
distanceErrorPct()
org.apache.lucene.search.Query
geoShapeQuery(org.elasticsearch.geometry.Geometry shape, java.lang.String fieldName, ShapeRelation relation, SearchExecutionContext context)
org.apache.lucene.search.Query
geoShapeQuery(org.elasticsearch.geometry.Geometry shape, java.lang.String fieldName, SpatialStrategy strategy, ShapeRelation relation, SearchExecutionContext context)
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
Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType
termQuery, valueFetcher
Methods 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, normalizedWildcardQuery, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixQuery, prefixQuery, rangeQuery, regexpQuery, setBoost, spanPrefixQuery, termQueryCaseInsensitive, termsQuery, valueForDisplay, wildcardQuery, wildcardQuery
Methods 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:
geoShapeQuery
in 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:
geoShapeQuery
in interfaceGeoShapeQueryable
-
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)
-