Package org.elasticsearch.index.mapper
Class LegacyGeoShapeFieldMapper.GeoShapeFieldType
java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper.AbstractGeometryFieldType<T>
org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType<ShapeBuilder<?,?,?>>
org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper.GeoShapeFieldType
- All Implemented Interfaces:
GeoShapeQueryable
- Enclosing class:
- LegacyGeoShapeFieldMapper
public static final class LegacyGeoShapeFieldMapper.GeoShapeFieldType
extends AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType<ShapeBuilder<?,?,?>>
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.spatial.prefix.PrefixTreeStrategy
double
org.apache.lucene.search.Query
geoShapeQuery(org.elasticsearch.geometry.Geometry shape, String fieldName, ShapeRelation relation, SearchExecutionContext context)
org.apache.lucene.search.Query
geoShapeQuery(org.elasticsearch.geometry.Geometry shape, String fieldName, SpatialStrategy strategy, ShapeRelation relation, SearchExecutionContext context)
protected Function<ShapeBuilder<?,?,?>,Object>
getFormatter(String format)
Gets the formatter by name.boolean
double
org.apache.lucene.spatial.prefix.PrefixTreeStrategy
resolvePrefixTreeStrategy(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
void
setTreeLevels(int treeLevels)
strategy()
tree()
int
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, fuzzyIntervals, fuzzyQuery, getTerms, getTextSearchInfo, hasDocValues, isAggregatable, isFieldWithinQuery, isSearchable, isStored, meta, multiPhraseQuery, name, normalizedWildcardQuery, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixIntervals, prefixQuery, prefixQuery, rangeQuery, regexpQuery, setBoost, spanPrefixQuery, termIntervals, termQueryCaseInsensitive, termsQuery, valueForDisplay, wildcardIntervals, wildcardQuery, wildcardQuery
-
Constructor Details
-
GeoShapeFieldType
-
-
Method Details
-
geoShapeQuery
public org.apache.lucene.search.Query geoShapeQuery(org.elasticsearch.geometry.Geometry shape, String fieldName, ShapeRelation relation, SearchExecutionContext context)- Specified by:
geoShapeQuery
in interfaceGeoShapeQueryable
-
geoShapeQuery
public org.apache.lucene.search.Query geoShapeQuery(org.elasticsearch.geometry.Geometry shape, String fieldName, SpatialStrategy strategy, ShapeRelation relation, SearchExecutionContext context)- Specified by:
geoShapeQuery
in interfaceGeoShapeQueryable
-
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
-
setTree
-
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(String strategyName) -
getFormatter
Description copied from class:AbstractGeometryFieldMapper.AbstractGeometryFieldType
Gets the formatter by name.- Specified by:
getFormatter
in classAbstractGeometryFieldMapper.AbstractGeometryFieldType<ShapeBuilder<?,?,?>>
-