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()
protected
GeoShapeFieldType(GeoShapeFieldMapper.GeoShapeFieldType ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts, boolean strict)
Checks for any conflicts between this field type and other.GeoShapeFieldMapper.GeoShapeFieldType
clone()
org.apache.lucene.spatial.prefix.PrefixTreeStrategy
defaultStrategy()
double
distanceErrorPct()
boolean
equals(java.lang.Object o)
org.apache.lucene.search.Query
existsQuery(QueryShardContext context)
void
freeze()
int
hashCode()
ShapeBuilder.Orientation
orientation()
boolean
pointsOnly()
double
precisionInMeters()
org.apache.lucene.spatial.prefix.PrefixTreeStrategy
resolveStrategy(java.lang.String strategyName)
org.apache.lucene.spatial.prefix.PrefixTreeStrategy
resolveStrategy(SpatialStrategy strategy)
void
setDefaultDistanceErrorPct(double defaultDistanceErrorPct)
void
setDistanceErrorPct(double distanceErrorPct)
void
setOrientation(ShapeBuilder.Orientation orientation)
void
setPointsOnly(boolean pointsOnly)
void
setPrecisionInMeters(double precisionInMeters)
void
setStrategyName(java.lang.String strategyName)
void
setTree(java.lang.String tree)
void
setTreeLevels(int treeLevels)
java.lang.String
strategyName()
org.apache.lucene.search.Query
termQuery(java.lang.Object value, QueryShardContext context)
Generates a query that will only match documents that contain the given value.java.lang.String
tree()
int
treeLevels()
java.lang.String
typeName()
Returns the name of this type, as would be specified in mapping properties-
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, wildcardQuery
-
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
-
-
-
-
Constructor Detail
-
GeoShapeFieldType
public GeoShapeFieldType()
-
GeoShapeFieldType
protected GeoShapeFieldType(GeoShapeFieldMapper.GeoShapeFieldType ref)
-
-
Method Detail
-
clone
public GeoShapeFieldMapper.GeoShapeFieldType clone()
- Specified by:
clone
in classMappedFieldType
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classMappedFieldType
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMappedFieldType
-
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
-
freeze
public void freeze()
- Overrides:
freeze
in classorg.apache.lucene.document.FieldType
-
checkCompatibility
public void checkCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts, boolean strict)
Description copied from class:MappedFieldType
Checks 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:
checkCompatibility
in 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:
existsQuery
in classMappedFieldType
-
termQuery
public org.apache.lucene.search.Query termQuery(java.lang.Object value, QueryShardContext context)
Description copied from class:MappedFieldType
Generates a query that will only match documents that contain the given value. The default implementation returns aTermQuery
over the value bytes, boosted byMappedFieldType.boost()
.- Specified by:
termQuery
in classMappedFieldType
-
-