Package org.elasticsearch.index.mapper
Class BinaryFieldMapper.BinaryFieldType
java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.BinaryFieldMapper.BinaryFieldType
- Enclosing class:
- BinaryFieldMapper
public static final class BinaryFieldMapper.BinaryFieldType extends MappedFieldType
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.Relation -
Constructor Summary
Constructors Constructor Description BinaryFieldType(java.lang.String name)BinaryFieldType(java.lang.String name, boolean hasDocValues, java.util.Map<java.lang.String,java.lang.String> meta) -
Method Summary
Modifier and Type Method Description DocValueFormatdocValueFormat(java.lang.String format, java.time.ZoneId timeZone)Return aDocValueFormatthat can be used to display and parse values as returned by the fielddata API.org.apache.lucene.search.QueryexistsQuery(QueryShardContext context)IndexFieldData.BuilderfielddataBuilder(java.lang.String fullyQualifiedIndexName)Return a fielddata builder for this fieldorg.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 propertiesBytesReferencevalueForDisplay(java.lang.Object value)Given a value that comes from the stored fields API, convert it to the expected type.Methods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, familyTypeName, fuzzyQuery, getTextSearchInfo, hasDocValues, indexAnalyzer, intervals, isAggregatable, isFieldWithinQuery, isSearchable, meta, multiPhraseQuery, name, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixQuery, rangeQuery, regexpQuery, setBoost, setEagerGlobalOrdinals, setIndexAnalyzer, spanPrefixQuery, termsQuery, updateMeta, wildcardQuery
-
Constructor Details
-
BinaryFieldType
public BinaryFieldType(java.lang.String name, boolean hasDocValues, java.util.Map<java.lang.String,java.lang.String> meta) -
BinaryFieldType
public BinaryFieldType(java.lang.String name)
-
-
Method Details
-
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
-
docValueFormat
Description copied from class:MappedFieldTypeReturn aDocValueFormatthat can be used to display and parse values as returned by the fielddata API. The default implementation returns aDocValueFormat.RAW.- Overrides:
docValueFormatin classMappedFieldType
-
valueForDisplay
Description copied from class:MappedFieldTypeGiven a value that comes from the stored fields API, convert it to the expected type. For instance a date field would store dates as longs and format it back to a string in this method.- Overrides:
valueForDisplayin classMappedFieldType
-
fielddataBuilder
Description copied from class:MappedFieldTypeReturn a fielddata builder for this field- Overrides:
fielddataBuilderin classMappedFieldType- Parameters:
fullyQualifiedIndexName- the name of the index this field-data is build for
-
existsQuery
- Specified by:
existsQueryin classMappedFieldType
-
termQuery
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
-