Package org.elasticsearch.index.mapper
Class GeoShapeFieldMapper.GeoShapeFieldType
- java.lang.Object
-
- org.apache.lucene.document.FieldType
-
- org.elasticsearch.index.mapper.MappedFieldType
-
- org.elasticsearch.index.mapper.GeoShapeFieldMapper.GeoShapeFieldType
-
- All Implemented Interfaces:
org.apache.lucene.index.IndexableFieldType
- Enclosing class:
- GeoShapeFieldMapper
public static final class GeoShapeFieldMapper.GeoShapeFieldType extends MappedFieldType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.Relation
-
-
Constructor Summary
Constructors Modifier Constructor Description GeoShapeFieldType()protectedGeoShapeFieldType(GeoShapeFieldMapper.GeoShapeFieldType ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts, boolean strict)Checks for any conflicts between this field type and other.GeoShapeFieldMapper.GeoShapeFieldTypeclone()org.apache.lucene.spatial.prefix.PrefixTreeStrategydefaultStrategy()doubledistanceErrorPct()booleanequals(java.lang.Object o)org.apache.lucene.search.QueryexistsQuery(QueryShardContext context)voidfreeze()inthashCode()ShapeBuilder.Orientationorientation()booleanpointsOnly()doubleprecisionInMeters()org.apache.lucene.spatial.prefix.PrefixTreeStrategyresolveStrategy(java.lang.String strategyName)org.apache.lucene.spatial.prefix.PrefixTreeStrategyresolveStrategy(SpatialStrategy strategy)voidsetDefaultDistanceErrorPct(double defaultDistanceErrorPct)voidsetDistanceErrorPct(double distanceErrorPct)voidsetOrientation(ShapeBuilder.Orientation orientation)voidsetPointsOnly(boolean pointsOnly)voidsetPrecisionInMeters(double precisionInMeters)voidsetStrategyName(java.lang.String strategyName)voidsetTree(java.lang.String tree)voidsetTreeLevels(int treeLevels)java.lang.StringstrategyName()org.apache.lucene.search.QuerytermQuery(java.lang.Object value, QueryShardContext context)Generates a query that will only match documents that contain the given value.java.lang.Stringtree()inttreeLevels()java.lang.StringtypeName()Returns the name of this type, as would be specified in mapping properties-
Methods inherited from class org.apache.lucene.document.FieldType
checkIfFrozen, docValuesType, indexOptions, omitNorms, pointDimensionCount, pointNumBytes, setDimensions, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, toString
-
Methods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, fielddataBuilder, fuzzyQuery, hasDocValues, indexAnalyzer, isAggregatable, isFieldWithinQuery, isSearchable, multiPhraseQuery, name, nullValue, nullValueAsString, nullValueQuery, phraseQuery, prefixQuery, queryStringTermQuery, rangeQuery, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, setBoost, setEagerGlobalOrdinals, setHasDocValues, setIndexAnalyzer, setName, setNullValue, setSearchAnalyzer, setSearchQuoteAnalyzer, setSimilarity, similarity, termsQuery, valueForDisplay
-
-
-
-
Constructor Detail
-
GeoShapeFieldType
public GeoShapeFieldType()
-
GeoShapeFieldType
protected GeoShapeFieldType(GeoShapeFieldMapper.GeoShapeFieldType ref)
-
-
Method Detail
-
clone
public GeoShapeFieldMapper.GeoShapeFieldType clone()
- Specified by:
clonein classMappedFieldType
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classMappedFieldType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMappedFieldType
-
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
-
freeze
public void freeze()
- Overrides:
freezein classorg.apache.lucene.document.FieldType
-
checkCompatibility
public void checkCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts, boolean strict)
Description copied from class:MappedFieldTypeChecks for any conflicts between this field type and other. If strict is true, all properties must be equal. Otherwise, only properties which must never change in an index are checked.- Overrides:
checkCompatibilityin classMappedFieldType
-
tree
public java.lang.String tree()
-
setTree
public void setTree(java.lang.String tree)
-
strategyName
public java.lang.String strategyName()
-
setStrategyName
public void setStrategyName(java.lang.String strategyName)
-
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)
-
orientation
public ShapeBuilder.Orientation orientation()
-
setOrientation
public void setOrientation(ShapeBuilder.Orientation orientation)
-
defaultStrategy
public org.apache.lucene.spatial.prefix.PrefixTreeStrategy defaultStrategy()
-
resolveStrategy
public org.apache.lucene.spatial.prefix.PrefixTreeStrategy resolveStrategy(SpatialStrategy strategy)
-
resolveStrategy
public org.apache.lucene.spatial.prefix.PrefixTreeStrategy resolveStrategy(java.lang.String strategyName)
-
existsQuery
public org.apache.lucene.search.Query existsQuery(QueryShardContext context)
- Specified by:
existsQueryin classMappedFieldType
-
termQuery
public org.apache.lucene.search.Query termQuery(java.lang.Object value, QueryShardContext context)Description copied from class:MappedFieldTypeGenerates a query that will only match documents that contain the given value. The default implementation returns aTermQueryover the value bytes, boosted byMappedFieldType.boost().- Specified by:
termQueryin classMappedFieldType
-
-