org.apache.lucene.index.IndexableFieldType
public 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, toString
boost, 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, valueForDisplay
finalize, getClass, notify, notifyAll, wait, wait, wait
rangeQuery
fuzzyQuery, rangeQuery, regexpQuery, termsQuery
public TextFieldType()
protected TextFieldType(TextFieldMapper.TextFieldType ref)
public TextFieldMapper.TextFieldType clone()
clone
in class MappedFieldType
public boolean equals(java.lang.Object o)
equals
in class MappedFieldType
public int hashCode()
hashCode
in class MappedFieldType
public void checkCompatibility(MappedFieldType other, java.util.List<java.lang.String> conflicts, boolean strict)
MappedFieldType
checkCompatibility
in class MappedFieldType
public 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()
MappedFieldType
typeName
in class MappedFieldType
public org.apache.lucene.search.Query prefixQuery(java.lang.String value, org.apache.lucene.search.MultiTermQuery.RewriteMethod method, QueryShardContext context)
prefixQuery
in class StringFieldType
public org.apache.lucene.search.Query existsQuery(QueryShardContext context)
existsQuery
in class MappedFieldType
public org.apache.lucene.search.Query nullValueQuery()
nullValueQuery
in class MappedFieldType
public IndexFieldData.Builder fielddataBuilder(java.lang.String fullyQualifiedIndexName)
MappedFieldType
fielddataBuilder
in class MappedFieldType
fullyQualifiedIndexName
- 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)
MappedFieldType
TermQuery
over the value bytes,
boosted by MappedFieldType.boost()
.termQuery
in class MappedFieldType