com.gisgraphy.domain.geoloc.service.fulltextsearch.spell
Class SpellCheckerConfig

java.lang.Object
  extended by com.gisgraphy.domain.geoloc.service.fulltextsearch.spell.SpellCheckerConfig

public class SpellCheckerConfig
extends java.lang.Object

SpecllChecker options

Author:
David Masclet

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

logger

public static final org.slf4j.Logger logger
The logger


enabled

public static boolean enabled
Wether the spellchecker is active or not. default is true


activeByDefault

public static boolean activeByDefault
Wether the default value is active or not, if we don't specify the value in the FulltextQuery.default is true


spellcheckerDictionaryName

public static SpellCheckerDictionaryNames spellcheckerDictionaryName
the default spellchecker name, default value is the value returned by SpellCheckerDictionaryNames.getDefault()


numberOfSuggestion

public static int numberOfSuggestion
The number of suggestion spellchecked, default is 2


collateResults

public static boolean collateResults
suggest a query with all the terms with the best suggestion for each word. default is true

Constructor Detail

SpellCheckerConfig

public SpellCheckerConfig()
Method Detail

isEnabled

public static boolean isEnabled()
Returns:
the enabled

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - the enabled to set

isActiveByDefault

public boolean isActiveByDefault()
Returns:
the activeByDefault

setActiveByDefault

public void setActiveByDefault(boolean activeByDefault)
Parameters:
activeByDefault - the activeByDefault to set

getSpellcheckerDictionaryName

public SpellCheckerDictionaryNames getSpellcheckerDictionaryName()
Returns:
the spellcheckerName

setSpellcheckerDictionaryName

public void setSpellcheckerDictionaryName(SpellCheckerDictionaryNames spellcheckerDictionaryName)
Parameters:
spellcheckerDictionaryName - the spellcheckerName to set

getNumberOfSuggestion

public int getNumberOfSuggestion()
Returns:
the numberOfSuggestion

setNumberOfSuggestion

public void setNumberOfSuggestion(int numberOfSuggestion)
Parameters:
numberOfSuggestion - the numberOfSuggestion to set

isCollateResults

public boolean isCollateResults()
Returns:
the collateResults

setCollateResults

public void setCollateResults(boolean collateResults)
Parameters:
collateResults - the collateResults to set


Copyright © 2010. All Rights Reserved.