public class SpellChecker extends NodeVisitor
Modifier and Type | Class and Description |
---|---|
class |
SpellChecker.SpellCheckJob |
Modifier and Type | Field and Description |
---|---|
SpellChecker.SpellCheckJob |
job |
protected static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
SpellChecker(com.exalead.flis.FLISServiceClient dictionary) |
SpellChecker(com.exalead.flis.FLISServiceClient dictionary,
SpellCheckerConfig config)
Create a spell-checker able to request the Dictionary.
Please refer to the documentation to learn more about the Global Dictionary. |
Modifier and Type | Method and Description |
---|---|
void |
setBlackListedPrefixHandlers(SpellCheckerConfig config) |
void |
setSpellCheckerConfig(SpellCheckerConfig config) |
Node |
visit(ButNot node) |
Node |
visit(Not node) |
Node |
visit(PrefixNode node) |
Node |
visit(RootNode node) |
Node |
visit(Split node) |
Node |
visit(UserQueryChunk node) |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitNary, visitUnary
protected static final org.apache.log4j.Logger logger
public SpellChecker.SpellCheckJob job
public SpellChecker(com.exalead.flis.FLISServiceClient dictionary, SpellCheckerConfig config)
dictionary
- The HTTP user-agent connected to the Dictionary.public SpellChecker(com.exalead.flis.FLISServiceClient dictionary)
public void setSpellCheckerConfig(SpellCheckerConfig config)
public void setBlackListedPrefixHandlers(SpellCheckerConfig config)
public Node visit(RootNode node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public Node visit(PrefixNode node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public Node visit(Not node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public Node visit(ButNot node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public Node visit(Split node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public Node visit(UserQueryChunk node)
visit
in class NodeVisitor
Copyright © 2013 Dassault Systèmes, All Rights Reserved.