public static final class CompletionFieldMapper2x.CompletionFieldType extends MappedFieldType
MappedFieldType.Relation| Modifier | Constructor and Description |
|---|---|
|
CompletionFieldType() |
protected |
CompletionFieldType(CompletionFieldMapper2x.CompletionFieldType ref) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCompatibility(MappedFieldType fieldType,
java.util.List<java.lang.String> conflicts,
boolean strict)
Checks for any conflicts between this field type and other.
|
CompletionFieldMapper2x.CompletionFieldType |
clone() |
boolean |
equals(java.lang.Object o) |
java.util.SortedMap<java.lang.String,ContextMapping> |
getContextMapping()
Get the context mapping associated with this completion field
|
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.codecs.PostingsFormat |
postingsFormat(org.apache.lucene.codecs.PostingsFormat in) |
boolean |
requiresContext() |
void |
setContextMapping(java.util.SortedMap<java.lang.String,ContextMapping> contextMapping) |
void |
setProvider(AnalyzingCompletionLookupProvider provider) |
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.
|
org.apache.lucene.search.Query |
termsQuery(java.util.List<?> values,
QueryShardContext context)
Build a constant-scoring query that matches all values.
|
java.lang.String |
typeName()
Returns the name of this type, as would be specified in mapping properties
|
boost, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, fielddataBuilder, fuzzyQuery, hasDocValues, indexAnalyzer, isAggregatable, isFieldWithinQuery, isSearchable, name, nullValue, nullValueAsString, nullValueQuery, prefixQuery, queryStringTermQuery, rangeQuery, regexpQuery, 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 CompletionFieldType()
protected CompletionFieldType(CompletionFieldMapper2x.CompletionFieldType ref)
public boolean equals(java.lang.Object o)
equals in class MappedFieldTypepublic int hashCode()
hashCode in class MappedFieldTypepublic CompletionFieldMapper2x.CompletionFieldType clone()
clone in class MappedFieldTypepublic java.lang.String typeName()
MappedFieldTypetypeName in class MappedFieldTypepublic void checkCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts, boolean strict)
MappedFieldTypecheckCompatibility in class MappedFieldTypepublic void setProvider(AnalyzingCompletionLookupProvider provider)
public org.apache.lucene.codecs.PostingsFormat postingsFormat(org.apache.lucene.codecs.PostingsFormat in)
public void setContextMapping(java.util.SortedMap<java.lang.String,ContextMapping> contextMapping)
public java.util.SortedMap<java.lang.String,ContextMapping> getContextMapping()
public boolean requiresContext()
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)
MappedFieldTypeTermQuery over the value bytes,
boosted by MappedFieldType.boost().termQuery in class MappedFieldTypepublic org.apache.lucene.search.Query termsQuery(java.util.List<?> values,
QueryShardContext context)
MappedFieldTypeConstantScoreQuery around a BooleanQuery whose BooleanClause.Occur.SHOULD clauses
are generated with MappedFieldType.termQuery(java.lang.Object, org.elasticsearch.index.query.QueryShardContext).termsQuery in class MappedFieldType