public class SpellingQueryConverter extends QueryConverter
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String[] |
ADDITIONAL_NAMECHAR_PARTS |
(package private) static java.lang.String[] |
NAMESTARTCHAR_PARTS |
(package private) static java.lang.String |
NMTOKEN |
(package private) static java.lang.String |
PATTERN |
protected java.util.regex.Pattern |
QUERY_REGEX |
(package private) static java.lang.String |
SURROGATE_PAIR |
analyzer
Constructor and Description |
---|
SpellingQueryConverter() |
Modifier and Type | Method and Description |
---|---|
protected void |
analyze(java.util.Collection<org.apache.lucene.analysis.Token> result,
java.io.Reader text,
int offset) |
java.util.Collection<org.apache.lucene.analysis.Token> |
convert(java.lang.String original)
Converts the original query string to a collection of Lucene Tokens.
|
getAnalyzer, init, setAnalyzer
static final java.lang.String[] NAMESTARTCHAR_PARTS
static final java.lang.String[] ADDITIONAL_NAMECHAR_PARTS
static final java.lang.String SURROGATE_PAIR
static final java.lang.String NMTOKEN
static final java.lang.String PATTERN
protected java.util.regex.Pattern QUERY_REGEX
public java.util.Collection<org.apache.lucene.analysis.Token> convert(java.lang.String original)
convert
in class QueryConverter
original
- the original query stringprotected void analyze(java.util.Collection<org.apache.lucene.analysis.Token> result, java.io.Reader text, int offset) throws java.io.IOException
java.io.IOException