public static final class LegacyIpFieldMapper.IpFieldType extends LegacyLongFieldMapper.LongFieldType
MappedFieldType.Relation
Modifier | Constructor and Description |
---|---|
|
IpFieldType() |
protected |
IpFieldType(LegacyIpFieldMapper.IpFieldType ref) |
Modifier and Type | Method and Description |
---|---|
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. |
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".
|
org.apache.lucene.search.Query |
rangeQuery(java.lang.Object lowerTerm,
java.lang.Object upperTerm,
boolean includeLower,
boolean includeUpper,
QueryShardContext context) |
FieldStats |
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
|
java.lang.Object |
valueForDisplay(java.lang.Object value)
IPs should return as a string.
|
nullValue
checkCompatibility
boost, 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
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 IpFieldType()
protected IpFieldType(LegacyIpFieldMapper.IpFieldType ref)
public LegacyNumberFieldMapper.NumberFieldType clone()
clone
in class LegacyLongFieldMapper.LongFieldType
public java.lang.String typeName()
MappedFieldType
typeName
in class LegacyLongFieldMapper.LongFieldType
public java.lang.Object valueForDisplay(java.lang.Object value)
valueForDisplay
in class MappedFieldType
public org.apache.lucene.util.BytesRef indexedValueForSearch(java.lang.Object value)
termQuery(java.lang.Object, org.elasticsearch.index.query.QueryShardContext)
.indexedValueForSearch
in class LegacyLongFieldMapper.LongFieldType
public org.apache.lucene.search.Query termQuery(java.lang.Object value, @Nullable QueryShardContext context)
MappedFieldType
TermQuery
over the value bytes,
boosted by MappedFieldType.boost()
.public org.apache.lucene.search.Query rangeQuery(java.lang.Object lowerTerm, java.lang.Object upperTerm, boolean includeLower, boolean includeUpper, QueryShardContext context)
rangeQuery
in class LegacyLongFieldMapper.LongFieldType
public FieldStats stats(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
stats
in class LegacyLongFieldMapper.LongFieldType
FieldStats
instance that maps to the type of this
field or null
if the provided index has no stats about the
current fieldjava.io.IOException
public IndexFieldData.Builder fielddataBuilder()
MappedFieldType
fielddataBuilder
in class LegacyLongFieldMapper.LongFieldType
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 LegacyNumberFieldMapper.NumberFieldType
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