public static final class KeywordFieldMapper.KeywordFieldType extends StringFieldType
MappedFieldType.Relation| Modifier | Constructor | Description |
|---|---|---|
|
KeywordFieldType() |
|
protected |
KeywordFieldType(KeywordFieldMapper.KeywordFieldType ref) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkCompatibility(MappedFieldType otherFT,
java.util.List<java.lang.String> conflicts,
boolean strict) |
Checks for any conflicts between this field type and other.
|
KeywordFieldMapper.KeywordFieldType |
clone() |
|
boolean |
equals(java.lang.Object o) |
|
org.apache.lucene.search.Query |
existsQuery(QueryShardContext context) |
|
IndexFieldData.Builder |
fielddataBuilder(java.lang.String fullyQualifiedIndexName) |
Return a fielddata builder for this field
|
int |
hashCode() |
|
protected org.apache.lucene.util.BytesRef |
indexedValueForSearch(java.lang.Object value) |
Returns the indexed value used to construct search "values".
|
NamedAnalyzer |
normalizer() |
|
org.apache.lucene.search.Query |
nullValueQuery() |
|
void |
setNormalizer(NamedAnalyzer normalizer) |
|
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 |
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, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, hasDocValues, indexAnalyzer, isAggregatable, isFieldWithinQuery, isSearchable, name, nullValue, nullValueAsString, queryStringTermQuery, searchAnalyzer, searchQuoteAnalyzer, setBoost, setEagerGlobalOrdinals, setHasDocValues, setIndexAnalyzer, setName, setNullValue, setSearchAnalyzer, setSearchQuoteAnalyzer, setSimilarity, similarityfinalize, getClass, notify, notifyAll, wait, wait, waitrangeQueryfuzzyQuery, prefixQuery, rangeQuery, regexpQuery, termsQuerypublic KeywordFieldType()
protected KeywordFieldType(KeywordFieldMapper.KeywordFieldType ref)
public KeywordFieldMapper.KeywordFieldType clone()
clone in class MappedFieldTypepublic boolean equals(java.lang.Object o)
equals in class MappedFieldTypepublic void checkCompatibility(MappedFieldType otherFT, java.util.List<java.lang.String> conflicts, boolean strict)
MappedFieldTypecheckCompatibility in class MappedFieldTypepublic int hashCode()
hashCode in class MappedFieldTypepublic java.lang.String typeName()
MappedFieldTypetypeName in class MappedFieldTypepublic NamedAnalyzer normalizer()
public void setNormalizer(NamedAnalyzer normalizer)
public org.apache.lucene.search.Query existsQuery(QueryShardContext context)
existsQuery in class MappedFieldTypepublic org.apache.lucene.search.Query nullValueQuery()
nullValueQuery 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 java.lang.Object valueForDisplay(java.lang.Object value)
MappedFieldTypevalueForDisplay in class MappedFieldTypeprotected 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)
MappedFieldTypeTermQuery over the value bytes,
boosted by MappedFieldType.boost().termQuery in class MappedFieldType