public static final class TextFieldMapper.TextFieldType extends StringFieldType
MappedFieldType.Relation| Modifier | Constructor and Description |
|---|---|
|
TextFieldType() |
protected |
TextFieldType(TextFieldMapper.TextFieldType 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.
|
TextFieldMapper.TextFieldType |
clone() |
boolean |
equals(java.lang.Object o) |
boolean |
fielddata() |
IndexFieldData.Builder |
fielddataBuilder()
Return a fielddata builder for this field
|
double |
fielddataMaxFrequency() |
double |
fielddataMinFrequency() |
int |
fielddataMinSegmentSize() |
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() |
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
|
fuzzyQuery, prefixQuery, rangeQuery, regexpQuery, termsQueryboost, 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, stats, valueForDisplaycheckIfFrozen, 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, toStringpublic 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 java.lang.String typeName()
MappedFieldTypetypeName in class MappedFieldTypepublic org.apache.lucene.search.Query nullValueQuery()
nullValueQuery in class MappedFieldTypepublic IndexFieldData.Builder fielddataBuilder()
MappedFieldTypefielddataBuilder 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