public class SpellingQueryConverter extends QueryConverter
Modifier and Type | Field and Description |
---|---|
protected Pattern |
QUERY_REGEX |
analyzer
Constructor and Description |
---|
SpellingQueryConverter() |
Modifier and Type | Method and Description |
---|---|
protected void |
analyze(Collection<Token> result,
Reader text,
int offset) |
Collection<Token> |
convert(String original)
Converts the original query string to a collection of Lucene Tokens.
|
getAnalyzer, init, setAnalyzer
protected Pattern QUERY_REGEX
public Collection<Token> convert(String original)
convert
in class QueryConverter
original
- the original query stringprotected void analyze(Collection<Token> result, Reader text, int offset) throws IOException
IOException