public static final class CompletionFieldMapper.CompletionFieldType extends SimpleMappedFieldType
MappedFieldType.Relation
Constructor and Description |
---|
CompletionFieldType() |
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.
|
CompletionFieldMapper.CompletionFieldType |
clone() |
boolean |
equals(java.lang.Object o) |
org.apache.lucene.search.Query |
existsQuery(QueryShardContext context) |
org.apache.lucene.search.suggest.document.CompletionQuery |
fuzzyQuery(java.lang.String value,
Fuzziness fuzziness,
int nonFuzzyPrefixLength,
int minFuzzyPrefixLength,
int maxExpansions,
boolean transpositions,
boolean unicodeAware)
Completion prefix fuzzy query
|
ContextMappings |
getContextMappings() |
boolean |
hasContextMappings() |
int |
hashCode() |
NamedAnalyzer |
indexAnalyzer() |
protected org.apache.lucene.util.BytesRef |
indexedValueForSearch(java.lang.Object value)
Returns the indexed value used to construct search "values".
|
static org.apache.lucene.codecs.PostingsFormat |
postingsFormat() |
org.apache.lucene.search.suggest.document.CompletionQuery |
prefixQuery(java.lang.Object value)
Completion prefix query
|
boolean |
preservePositionIncrements() |
boolean |
preserveSep() |
org.apache.lucene.search.suggest.document.CompletionQuery |
regexpQuery(java.lang.Object value,
int flags,
int maxDeterminizedStates)
Completion prefix regular expression query
|
NamedAnalyzer |
searchAnalyzer() |
void |
setContextMappings(ContextMappings contextMappings) |
void |
setPreservePositionIncrements(boolean preservePositionIncrements) |
void |
setPreserveSep(boolean preserveSep) |
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
|
rangeQuery, rangeQuery
boost, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, fielddataBuilder, fuzzyQuery, hasDocValues, isAggregatable, isFieldWithinQuery, isSearchable, name, nullValue, nullValueAsString, nullValueQuery, prefixQuery, queryStringTermQuery, regexpQuery, searchQuoteAnalyzer, setBoost, setEagerGlobalOrdinals, setHasDocValues, setIndexAnalyzer, setName, setNullValue, setSearchAnalyzer, setSearchQuoteAnalyzer, setSimilarity, similarity, valueForDisplay
checkIfFrozen, docValuesType, freeze, indexOptions, omitNorms, pointDimensionCount, pointNumBytes, setDimensions, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, toString
public void setPreserveSep(boolean preserveSep)
public void setPreservePositionIncrements(boolean preservePositionIncrements)
public void setContextMappings(ContextMappings contextMappings)
public NamedAnalyzer indexAnalyzer()
indexAnalyzer
in class MappedFieldType
public NamedAnalyzer searchAnalyzer()
searchAnalyzer
in class MappedFieldType
public boolean hasContextMappings()
public ContextMappings getContextMappings()
public boolean preserveSep()
public boolean preservePositionIncrements()
public static org.apache.lucene.codecs.PostingsFormat postingsFormat()
public org.apache.lucene.search.Query existsQuery(QueryShardContext context)
existsQuery
in class MappedFieldType
public org.apache.lucene.search.suggest.document.CompletionQuery prefixQuery(java.lang.Object value)
public org.apache.lucene.search.suggest.document.CompletionQuery regexpQuery(java.lang.Object value, int flags, int maxDeterminizedStates)
public org.apache.lucene.search.suggest.document.CompletionQuery fuzzyQuery(java.lang.String value, Fuzziness fuzziness, int nonFuzzyPrefixLength, int minFuzzyPrefixLength, int maxExpansions, boolean transpositions, boolean unicodeAware)
public boolean equals(java.lang.Object o)
equals
in class MappedFieldType
public int hashCode()
hashCode
in class MappedFieldType
public CompletionFieldMapper.CompletionFieldType clone()
clone
in class MappedFieldType
public java.lang.String typeName()
MappedFieldType
typeName
in class MappedFieldType
public void checkCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts, boolean strict)
MappedFieldType
checkCompatibility
in class MappedFieldType
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)
MappedFieldType
TermQuery
over the value bytes,
boosted by MappedFieldType.boost()
.termQuery
in class MappedFieldType
public org.apache.lucene.search.Query termsQuery(java.util.List<?> values, QueryShardContext context)
MappedFieldType
ConstantScoreQuery
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