public class NGramAnalyzerProperties extends Object
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.
Constructor and Description |
---|
NGramAnalyzerProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getEndMarker() |
long |
getMax() |
long |
getMin() |
String |
getStartMarker() |
StreamType |
getStreamType() |
int |
hashCode() |
boolean |
isPreserveOriginal() |
void |
setEndMarker(String endMarker) |
void |
setMax(long max) |
void |
setMin(long min) |
void |
setPreserveOriginal(boolean preserveOriginal) |
void |
setStartMarker(String startMarker) |
void |
setStreamType(StreamType streamType) |
public long getMin()
public void setMin(long min)
public long getMax()
public void setMax(long max)
public boolean isPreserveOriginal()
true
to include the original value as well
false
to produce the n-grams based on min and max onlypublic void setPreserveOriginal(boolean preserveOriginal)
public String getStartMarker()
public void setStartMarker(String startMarker)
public String getEndMarker()
public void setEndMarker(String endMarker)
public StreamType getStreamType()
public void setStreamType(StreamType streamType)
Copyright © 2016–2021 ArangoDB GmbH. All rights reserved.