public interface SpellChecker
SpellChecker defines an interface to run a spellchecker over
a fulltext query statement.| Modifier and Type | Method and Description |
|---|---|
String |
check(QueryRootNode aqt)
Runs the spell checker over the first spellcheck relation query node in
the abstract query tree and returns a suggestion in case this
spellchecker thinks the words are misspelled.
|
void |
close()
Closes this spell checker and allows it to free resources.
|
void |
init(QueryHandler handler)
Initializes this spell checker with an abstract query tree.
|
void init(QueryHandler handler) throws IOException
handler - the query handler that created this spell checker.IOException - if an error occurs while initializing the spell
checker.String check(QueryRootNode aqt) throws IOException
null is
returned.aqt - the abstract query tree, which may contain a relation query
node with a spellcheck operation.null if this spell checker
determines that the fulltext query statement is spelled
correctly.IOExceptionvoid close()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.