org.apache.lucene.index.IndexableFieldTypepublic static final class TextFieldMapper.TextFieldType extends StringFieldType
MappedFieldType.Relation| Modifier | Constructor | Description |
|---|---|---|
|
TextFieldType() |
|
protected |
TextFieldType(TextFieldMapper.TextFieldType ref) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkCompatibility(MappedFieldType other,
java.util.List<java.lang.String> conflicts,
boolean strict) |
Checks for any conflicts between this field type and other.
|
TextFieldMapper.TextFieldType |
clone() |
|
boolean |
equals(java.lang.Object o) |
|
org.apache.lucene.search.Query |
existsQuery(QueryShardContext context) |
|
boolean |
fielddata() |
|
IndexFieldData.Builder |
fielddataBuilder(java.lang.String fullyQualifiedIndexName) |
Return a fielddata builder for this field
|
double |
fielddataMaxFrequency() |
|
double |
fielddataMinFrequency() |
|
int |
fielddataMinSegmentSize() |
|
org.elasticsearch.index.mapper.TextFieldMapper.PrefixFieldType |
getPrefixFieldType() |
|
int |
hashCode() |
|
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 |
prefixQuery(java.lang.String value,
org.apache.lucene.search.MultiTermQuery.RewriteMethod method,
QueryShardContext context) |
|
void |
setFielddata(boolean fielddata) |
|
void |
setFielddataMaxFrequency(double fielddataMaxFrequency) |
|
void |
setFielddataMinFrequency(double fielddataMinFrequency) |
|
void |
setFielddataMinSegmentSize(int fielddataMinSegmentSize) |
|
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
|
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, similarity, valueForDisplayfinalize, getClass, notify, notifyAll, wait, wait, waitrangeQueryfuzzyQuery, rangeQuery, regexpQuery, termsQuerypublic TextFieldType()
protected TextFieldType(TextFieldMapper.TextFieldType ref)
public TextFieldMapper.TextFieldType clone()
clone in class MappedFieldTypepublic boolean equals(java.lang.Object o)
equals in class MappedFieldTypepublic int hashCode()
hashCode in class MappedFieldTypepublic void checkCompatibility(MappedFieldType other, java.util.List<java.lang.String> conflicts, boolean strict)
MappedFieldTypecheckCompatibility in class MappedFieldTypepublic boolean fielddata()
public void setFielddata(boolean fielddata)
public double fielddataMinFrequency()
public void setFielddataMinFrequency(double fielddataMinFrequency)
public double fielddataMaxFrequency()
public void setFielddataMaxFrequency(double fielddataMaxFrequency)
public int fielddataMinSegmentSize()
public void setFielddataMinSegmentSize(int fielddataMinSegmentSize)
public org.elasticsearch.index.mapper.TextFieldMapper.PrefixFieldType getPrefixFieldType()
public java.lang.String typeName()
MappedFieldTypetypeName in class MappedFieldTypepublic org.apache.lucene.search.Query prefixQuery(java.lang.String value,
org.apache.lucene.search.MultiTermQuery.RewriteMethod method,
QueryShardContext context)
prefixQuery in class StringFieldTypepublic 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 forprotected 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