Class NGramAnalyzer
- java.lang.Object
-
- com.arangodb.entity.arangosearch.analyzer.SearchAnalyzer
-
- com.arangodb.entity.arangosearch.analyzer.NGramAnalyzer
-
public final class NGramAnalyzer extends SearchAnalyzer
An Analyzer capable of producing n-grams from a specified input in a range of min..max (inclusive). Can optionally preserve the original input.This Analyzer type can be used to implement substring matching. Note that it slices the input based on bytes and not characters by default (streamType). The “binary” mode supports single-byte characters only; multi-byte UTF-8 characters raise an Invalid UTF-8 sequence query error.
- Author:
- Michele Rastelli
- See Also:
- API Documentation
-
-
Constructor Summary
Constructors Constructor Description NGramAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
NGramAnalyzerProperties
getProperties()
int
hashCode()
void
setProperties(NGramAnalyzerProperties properties)
-
Methods inherited from class com.arangodb.entity.arangosearch.analyzer.SearchAnalyzer
getFeatures, getName, getType, setFeatures, setName, setType
-
-
-
-
Method Detail
-
getProperties
public NGramAnalyzerProperties getProperties()
-
setProperties
public void setProperties(NGramAnalyzerProperties properties)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSearchAnalyzer
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSearchAnalyzer
-
-