Package org.elasticsearch.index.mapper
Class BaseGeoShapeFieldMapper.BaseGeoShapeFieldType
- java.lang.Object
-
- org.apache.lucene.document.FieldType
-
- org.elasticsearch.index.mapper.MappedFieldType
-
- org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper.BaseGeoShapeFieldType
-
- All Implemented Interfaces:
org.apache.lucene.index.IndexableFieldType
- Direct Known Subclasses:
GeoShapeFieldMapper.GeoShapeFieldType,LegacyGeoShapeFieldMapper.GeoShapeFieldType
- Enclosing class:
- BaseGeoShapeFieldMapper
public abstract static class BaseGeoShapeFieldMapper.BaseGeoShapeFieldType extends MappedFieldType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.Relation
-
-
Field Summary
Fields Modifier and Type Field Description protected ShapeBuilder.Orientationorientation
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseGeoShapeFieldType()protectedBaseGeoShapeFieldType(BaseGeoShapeFieldMapper.BaseGeoShapeFieldType ref)
-
Method Summary
Modifier and Type Method Description voidcheckCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts)Checks for any conflicts between this field type and other.booleanequals(java.lang.Object o)org.apache.lucene.search.QueryexistsQuery(QueryShardContext context)inthashCode()ShapeBuilder.Orientationorientation()voidsetOrientation(ShapeBuilder.Orientation orientation)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.StringtypeName()Returns the name of this type, as would be specified in mapping properties-
Methods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, clone, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, fielddataBuilder, fuzzyQuery, hasDocValues, indexAnalyzer, intervals, isAggregatable, isFieldWithinQuery, isSearchable, multiPhraseQuery, name, nullValue, nullValueAsString, phrasePrefixQuery, phraseQuery, prefixQuery, rangeQuery, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, setBoost, setEagerGlobalOrdinals, setHasDocValues, setIndexAnalyzer, setName, setNullValue, setSearchAnalyzer, setSearchQuoteAnalyzer, setSimilarity, similarity, spanPrefixQuery, termsQuery, valueForDisplay, wildcardQuery
-
Methods inherited from class org.apache.lucene.document.FieldType
checkIfFrozen, docValuesType, freeze, getAttributes, indexOptions, omitNorms, pointDataDimensionCount, pointIndexDimensionCount, pointNumBytes, putAttribute, setDimensions, setDimensions, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, toString
-
-
-
-
Field Detail
-
orientation
protected ShapeBuilder.Orientation orientation
-
-
Constructor Detail
-
BaseGeoShapeFieldType
protected BaseGeoShapeFieldType()
-
BaseGeoShapeFieldType
protected BaseGeoShapeFieldType(BaseGeoShapeFieldMapper.BaseGeoShapeFieldType ref)
-
-
Method Detail
-
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
-
checkCompatibility
public void checkCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts)
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
-
orientation
public ShapeBuilder.Orientation orientation()
-
setOrientation
public void setOrientation(ShapeBuilder.Orientation orientation)
-
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
-
-