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<org.apache.lucene.analysis.Token> result,
Reader text,
int offset) |
Collection<org.apache.lucene.analysis.Token> |
convert(String original)
Converts the original query string to a collection of Lucene Tokens.
|
getAnalyzer, init, setAnalyzerprotected Pattern QUERY_REGEX
public Collection<org.apache.lucene.analysis.Token> convert(String original)
convert in class QueryConverteroriginal - the original query stringprotected void analyze(Collection<org.apache.lucene.analysis.Token> result, Reader text, int offset) throws IOException
IOException