public static final class LegacyIntegerFieldMapper.IntegerFieldType extends LegacyNumberFieldMapper.NumberFieldType
MappedFieldType.Relation| Modifier | Constructor and Description |
|---|---|
|
IntegerFieldType() |
protected |
IntegerFieldType(LegacyIntegerFieldMapper.IntegerFieldType ref) |
| Modifier and Type | Method and Description |
|---|---|
LegacyNumberFieldMapper.NumberFieldType |
clone() |
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.Integer |
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) |
FieldStats.Long |
stats(org.apache.lucene.index.IndexReader reader) |
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
|
checkCompatibility, docValueFormatboost, 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, valueForDisplaycheckIfFrozen, 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, toStringpublic IntegerFieldType()
protected IntegerFieldType(LegacyIntegerFieldMapper.IntegerFieldType ref)
public LegacyNumberFieldMapper.NumberFieldType clone()
clone in class LegacyNumberFieldMapper.NumberFieldTypepublic java.lang.String typeName()
MappedFieldTypetypeName in class MappedFieldTypepublic java.lang.Integer 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 org.apache.lucene.search.Query rangeQuery(java.lang.Object lowerTerm,
java.lang.Object upperTerm,
boolean includeLower,
boolean includeUpper,
QueryShardContext context)
rangeQuery in class MappedFieldTypepublic FieldStats.Long stats(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
stats in class MappedFieldTypeFieldStats instance that maps to the type of this
field or null if the provided index has no stats about the
current fieldjava.io.IOExceptionpublic IndexFieldData.Builder fielddataBuilder()
MappedFieldTypefielddataBuilder in class MappedFieldTypepublic 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