|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gisgraphy.domain.geoloc.service.fulltextsearch.spell.SpellCheckerConfig
public class SpellCheckerConfig
SpecllChecker options
| Field Summary | |
|---|---|
static boolean |
activeByDefault
Wether the default value is active or not, if we don't specify the value in the FulltextQuery.default is true |
static boolean |
collateResults
suggest a query with all the terms with the best suggestion for each word. default is true |
static boolean |
enabled
Wether the spellchecker is active or not. default is true |
static org.slf4j.Logger |
logger
The logger |
static int |
numberOfSuggestion
The number of suggestion spellchecked, default is 2 |
static SpellCheckerDictionaryNames |
spellcheckerDictionaryName
the default spellchecker name, default value is the value returned by SpellCheckerDictionaryNames.getDefault() |
| Constructor Summary | |
|---|---|
SpellCheckerConfig()
|
|
| Method Summary | |
|---|---|
int |
getNumberOfSuggestion()
|
SpellCheckerDictionaryNames |
getSpellcheckerDictionaryName()
|
boolean |
isActiveByDefault()
|
boolean |
isCollateResults()
|
static boolean |
isEnabled()
|
void |
setActiveByDefault(boolean activeByDefault)
|
void |
setCollateResults(boolean collateResults)
|
void |
setEnabled(boolean enabled)
|
void |
setNumberOfSuggestion(int numberOfSuggestion)
|
void |
setSpellcheckerDictionaryName(SpellCheckerDictionaryNames spellcheckerDictionaryName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.slf4j.Logger logger
public static boolean enabled
public static boolean activeByDefault
FulltextQuery.default is true
public static SpellCheckerDictionaryNames spellcheckerDictionaryName
SpellCheckerDictionaryNames.getDefault()
public static int numberOfSuggestion
public static boolean collateResults
| Constructor Detail |
|---|
public SpellCheckerConfig()
| Method Detail |
|---|
public static boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - the enabled to setpublic boolean isActiveByDefault()
public void setActiveByDefault(boolean activeByDefault)
activeByDefault - the activeByDefault to setpublic SpellCheckerDictionaryNames getSpellcheckerDictionaryName()
public void setSpellcheckerDictionaryName(SpellCheckerDictionaryNames spellcheckerDictionaryName)
spellcheckerDictionaryName - the spellcheckerName to setpublic int getNumberOfSuggestion()
public void setNumberOfSuggestion(int numberOfSuggestion)
numberOfSuggestion - the numberOfSuggestion to setpublic boolean isCollateResults()
public void setCollateResults(boolean collateResults)
collateResults - the collateResults to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||