Class NGramAnalyzer
java.lang.Object
com.arangodb.entity.arangosearch.analyzer.SearchAnalyzer
com.arangodb.entity.arangosearch.analyzer.NGramAnalyzer
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setProperties
(NGramAnalyzerProperties properties) Methods inherited from class com.arangodb.entity.arangosearch.analyzer.SearchAnalyzer
getFeatures, getName, getType, setFeatures, setName, setType
-
Constructor Details
-
NGramAnalyzer
public NGramAnalyzer()
-
-
Method Details
-
getProperties
-
setProperties
-
equals
- Overrides:
equals
in classSearchAnalyzer
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSearchAnalyzer
-