public static final class BooleanFieldMapper.BooleanFieldType extends TermBasedFieldType
MappedFieldType.Relation
Modifier | Constructor and Description |
---|---|
|
BooleanFieldType() |
protected |
BooleanFieldType(BooleanFieldMapper.BooleanFieldType ref) |
Modifier and Type | Method and Description |
---|---|
MappedFieldType |
clone() |
DocValueFormat |
docValueFormat(java.lang.String format,
org.joda.time.DateTimeZone timeZone)
Return a
DocValueFormat that can be used to display and parse
values as returned by the fielddata API. |
IndexFieldData.Builder |
fielddataBuilder()
Return a fielddata builder for this field
|
org.apache.lucene.util.BytesRef |
indexedValueForSearch(java.lang.Object value)
Returns the indexed value used to construct search "values".
|
java.lang.Boolean |
nullValue()
Returns the value that should be added when JSON null is found, or null if no value should be added
|
org.apache.lucene.search.Query |
rangeQuery(java.lang.Object lowerTerm,
java.lang.Object upperTerm,
boolean includeLower,
boolean includeUpper) |
java.lang.String |
typeName()
Returns the name of this type, as would be specified in mapping properties
|
java.lang.Boolean |
valueForSearch(java.lang.Object value)
Given a value that comes from the stored fields API, convert it to the
expected type.
|
termQuery, termsQuery
boost, checkCompatibility, eagerGlobalOrdinals, equals, extractTerm, failIfNoDocValues, failIfNotIndexed, fuzzyQuery, hasDocValues, hashCode, indexAnalyzer, isAggregatable, isFieldWithinQuery, isSearchable, name, nullValueAsString, nullValueQuery, prefixQuery, queryStringTermQuery, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, setBoost, setEagerGlobalOrdinals, setHasDocValues, setIndexAnalyzer, setName, setNullValue, setSearchAnalyzer, setSearchQuoteAnalyzer, setSimilarity, similarity, stats
checkIfFrozen, docValuesType, freeze, indexOptions, numericPrecisionStep, numericType, omitNorms, pointDimensionCount, pointNumBytes, setDimensions, setDocValuesType, setIndexOptions, setNumericPrecisionStep, setNumericType, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, toString
public BooleanFieldType()
protected BooleanFieldType(BooleanFieldMapper.BooleanFieldType ref)
public MappedFieldType clone()
clone
in class MappedFieldType
public java.lang.String typeName()
MappedFieldType
typeName
in class MappedFieldType
public java.lang.Boolean nullValue()
MappedFieldType
nullValue
in class MappedFieldType
public org.apache.lucene.util.BytesRef indexedValueForSearch(java.lang.Object value)
TermBasedFieldType
TermBasedFieldType.termQuery(java.lang.Object, org.elasticsearch.index.query.QueryShardContext)
.indexedValueForSearch
in class TermBasedFieldType
public java.lang.Boolean valueForSearch(java.lang.Object value)
MappedFieldType
valueForSearch
in class MappedFieldType
public IndexFieldData.Builder fielddataBuilder()
MappedFieldType
fielddataBuilder
in class MappedFieldType
public DocValueFormat docValueFormat(@Nullable java.lang.String format, org.joda.time.DateTimeZone timeZone)
MappedFieldType
DocValueFormat
that can be used to display and parse
values as returned by the fielddata API.
The default implementation returns a DocValueFormat.RAW
.docValueFormat
in class MappedFieldType
public org.apache.lucene.search.Query rangeQuery(java.lang.Object lowerTerm, java.lang.Object upperTerm, boolean includeLower, boolean includeUpper)
rangeQuery
in class MappedFieldType