public abstract static class LegacyNumberFieldMapper.NumberFieldType extends MappedFieldType
MappedFieldType.Relation
Modifier | Constructor and Description |
---|---|
|
NumberFieldType(org.apache.lucene.document.FieldType.LegacyNumericType numericType) |
protected |
NumberFieldType(LegacyNumberFieldMapper.NumberFieldType ref) |
Modifier and Type | Method and Description |
---|---|
void |
checkCompatibility(MappedFieldType other,
java.util.List<java.lang.String> conflicts,
boolean strict)
Checks for any conflicts between this field type and other.
|
abstract LegacyNumberFieldMapper.NumberFieldType |
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. |
protected org.apache.lucene.util.BytesRef |
indexedValueForSearch(java.lang.Object value)
Returns the indexed value used to construct search "values".
|
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.
|
boost, eagerGlobalOrdinals, equals, extractTerm, failIfNoDocValues, failIfNotIndexed, fielddataBuilder, fuzzyQuery, hasDocValues, hashCode, indexAnalyzer, isAggregatable, isFieldWithinQuery, isSearchable, name, nullValue, nullValueAsString, nullValueQuery, prefixQuery, queryStringTermQuery, rangeQuery, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, setBoost, setEagerGlobalOrdinals, setHasDocValues, setIndexAnalyzer, setName, setNullValue, setSearchAnalyzer, setSearchQuoteAnalyzer, setSimilarity, similarity, stats, typeName, valueForDisplay
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 NumberFieldType(org.apache.lucene.document.FieldType.LegacyNumericType numericType)
protected NumberFieldType(LegacyNumberFieldMapper.NumberFieldType ref)
public void checkCompatibility(MappedFieldType other, java.util.List<java.lang.String> conflicts, boolean strict)
MappedFieldType
checkCompatibility
in class MappedFieldType
public abstract LegacyNumberFieldMapper.NumberFieldType clone()
clone
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
protected 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 termQuery(java.lang.Object value, QueryShardContext context)
MappedFieldType
TermQuery
over the value bytes,
boosted by MappedFieldType.boost()
.termQuery
in class MappedFieldType
public org.apache.lucene.search.Query termsQuery(java.util.List<?> values, QueryShardContext context)
MappedFieldType
ConstantScoreQuery
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