public static final class BooleanFieldMapper.BooleanFieldType extends SimpleMappedFieldType
MappedFieldType.Relation| Modifier | Constructor | Description |
|---|---|---|
|
BooleanFieldType() |
|
protected |
BooleanFieldType(BooleanFieldMapper.BooleanFieldType ref) |
| Modifier and Type | Method | 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. |
org.apache.lucene.search.Query |
existsQuery(QueryShardContext context) |
|
IndexFieldData.Builder |
fielddataBuilder(java.lang.String fullyQualifiedIndexName) |
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,
QueryShardContext context) |
Same as
SimpleMappedFieldType.rangeQuery(Object, Object, boolean, boolean, ShapeRelation, DateTimeZone, DateMathParser, QueryShardContext)
but without the trouble of relations or date-specific options. |
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.
|
org.apache.lucene.search.Query |
termsQuery(java.util.List<?> values,
QueryShardContext context) |
Build a constant-scoring query that matches all values.
|
java.lang.String |
typeName() |
Returns the name of this type, as would be specified in mapping properties
|
java.lang.Boolean |
valueForDisplay(java.lang.Object value) |
Given a value that comes from the stored fields API, convert it to the
expected type.
|
checkIfFrozen, docValuesType, freeze, indexOptions, omitNorms, pointDimensionCount, pointNumBytes, setDimensions, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, toStringboost, 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, similarityfinalize, getClass, notify, notifyAll, wait, wait, waitrangeQuerypublic BooleanFieldType()
protected BooleanFieldType(BooleanFieldMapper.BooleanFieldType ref)
public MappedFieldType clone()
clone in class MappedFieldTypepublic java.lang.String typeName()
MappedFieldTypetypeName in class MappedFieldTypepublic org.apache.lucene.search.Query existsQuery(QueryShardContext context)
existsQuery in class MappedFieldTypepublic java.lang.Boolean nullValue()
MappedFieldTypenullValue in class MappedFieldTypepublic org.apache.lucene.util.BytesRef indexedValueForSearch(java.lang.Object value)
termQuery(java.lang.Object, org.elasticsearch.index.query.QueryShardContext).public java.lang.Boolean valueForDisplay(java.lang.Object value)
MappedFieldTypevalueForDisplay in class MappedFieldTypepublic IndexFieldData.Builder fielddataBuilder(java.lang.String fullyQualifiedIndexName)
MappedFieldTypefielddataBuilder in class MappedFieldTypefullyQualifiedIndexName - the name of the index this field-data is build forpublic DocValueFormat docValueFormat(@Nullable java.lang.String format, org.joda.time.DateTimeZone timeZone)
MappedFieldTypeDocValueFormat 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 MappedFieldTypepublic org.apache.lucene.search.Query rangeQuery(java.lang.Object lowerTerm,
java.lang.Object upperTerm,
boolean includeLower,
boolean includeUpper,
QueryShardContext context)
SimpleMappedFieldTypeSimpleMappedFieldType.rangeQuery(Object, Object, boolean, boolean, ShapeRelation, DateTimeZone, DateMathParser, QueryShardContext)
but without the trouble of relations or date-specific options.rangeQuery in class SimpleMappedFieldTypepublic org.apache.lucene.search.Query termQuery(java.lang.Object value,
QueryShardContext context)
MappedFieldTypeTermQuery over the value bytes,
boosted by MappedFieldType.boost().termQuery in class MappedFieldTypepublic org.apache.lucene.search.Query termsQuery(java.util.List<?> values,
QueryShardContext context)
MappedFieldTypeConstantScoreQuery around a BooleanQuery whose BooleanClause.Occur.SHOULD clauses
are generated with MappedFieldType.termQuery(java.lang.Object, org.elasticsearch.index.query.QueryShardContext).termsQuery in class MappedFieldType