public static final class KeywordFieldMapper.KeywordFieldType extends StringFieldType
MappedFieldType.Relation
Modifier | Constructor and Description |
---|---|
|
KeywordFieldType() |
protected |
KeywordFieldType(KeywordFieldMapper.KeywordFieldType ref) |
Modifier and Type | Method and Description |
---|---|
KeywordFieldMapper.KeywordFieldType |
clone() |
IndexFieldData.Builder |
fielddataBuilder()
Return a fielddata builder for this field
|
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 |
nullValueQuery() |
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.
|
java.lang.String |
typeName()
Returns the name of this type, as would be specified in mapping properties
|
java.lang.Object |
valueForSearch(java.lang.Object value)
Given a value that comes from the stored fields API, convert it to the
expected type.
|
fuzzyQuery, prefixQuery, rangeQuery, regexpQuery, termsQuery
boost, checkCompatibility, docValueFormat, eagerGlobalOrdinals, equals, extractTerm, failIfNoDocValues, failIfNotIndexed, hasDocValues, hashCode, indexAnalyzer, isAggregatable, isFieldWithinQuery, isSearchable, name, nullValue, nullValueAsString, queryStringTermQuery, 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 KeywordFieldType()
protected KeywordFieldType(KeywordFieldMapper.KeywordFieldType ref)
public KeywordFieldMapper.KeywordFieldType clone()
clone
in class MappedFieldType
public java.lang.String typeName()
MappedFieldType
typeName
in class MappedFieldType
public org.apache.lucene.search.Query nullValueQuery()
nullValueQuery
in class MappedFieldType
public IndexFieldData.Builder fielddataBuilder()
MappedFieldType
fielddataBuilder
in class MappedFieldType
public java.lang.Object valueForSearch(java.lang.Object value)
MappedFieldType
valueForSearch
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