no.sesat.search.result.handler
Class SpellingSuggestionChooserResultHandlerConfig

java.lang.Object
  extended by no.sesat.search.result.handler.AbstractResultHandlerConfig
      extended by no.sesat.search.result.handler.SpellingSuggestionChooserResultHandlerConfig
All Implemented Interfaces:
Serializable, ResultHandlerConfig

@AbstractResultHandlerConfig.Controller(value="SpellingSuggestionChooser")
public final class SpellingSuggestionChooserResultHandlerConfig
extends AbstractResultHandlerConfig

Spelling suggestions are chosen in the following way:

A new query is then created using the chosen suggestions.

Version:
$Id: SpellingSuggestionChooserResultHandlerConfig.java 7225 2009-04-09 00:32:20Z ssmiweve $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class no.sesat.search.result.handler.AbstractResultHandlerConfig
AbstractResultHandlerConfig.Controller
 
Constructor Summary
SpellingSuggestionChooserResultHandlerConfig()
           
 
Method Summary
 int getLongQuery()
           
 int getLongQueryMaxSuggestions()
           
 int getMaxDistance()
           
 int getMaxSuggestions()
           
 int getMinScore()
           
 int getMuchBetter()
           
 int getVeryLongQuery()
           
 AbstractResultHandlerConfig readResultHandler(Element element)
           
 void setLongQuery(int longQuery)
          Sets the number of terms query needs to be considered as long.
 void setLongQueryMaxSuggestions(int maxSuggestionsForLongQueries)
          Sets the number of suggestions to choose for very long queries.
 void setMaxDistance(int maxDistance)
          Sets the maximum difference in score a suggestion can have from the highest the suggestion with the highest score without being discarded.
 void setMaxSuggestions(int maxSuggestions)
          Sets the maximum number of suggestions to choose.
 void setMinScore(int minumScore)
          Sets the minimum score a suggestions needs to have to be considered.
 void setMuchBetter(int muchBetter)
          Sets the score difference needed for a suggestion to be rated as much better.
 void setVeryLongQuery(int veryLongQuery)
          Sets the number of terms a query needs to be considered as long.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpellingSuggestionChooserResultHandlerConfig

public SpellingSuggestionChooserResultHandlerConfig()
Method Detail

setMinScore

public void setMinScore(int minumScore)
Sets the minimum score a suggestions needs to have to be considered.

Parameters:
minumScore - New minimum score.

getMinScore

public int getMinScore()
Returns:

setMaxSuggestions

public void setMaxSuggestions(int maxSuggestions)
Sets the maximum number of suggestions to choose.

Parameters:
maxSuggestions - New max number of suggestions.

getMaxSuggestions

public int getMaxSuggestions()
Returns:

setMaxDistance

public void setMaxDistance(int maxDistance)
Sets the maximum difference in score a suggestion can have from the highest the suggestion with the highest score without being discarded.

Parameters:
maxDistance - New max distance.

getMaxDistance

public int getMaxDistance()
Returns:

setMuchBetter

public void setMuchBetter(int muchBetter)
Sets the score difference needed for a suggestion to be rated as much better.

Parameters:
muchBetter - New difference.

getMuchBetter

public int getMuchBetter()
Returns:

setLongQuery

public void setLongQuery(int longQuery)
Sets the number of terms query needs to be considered as long.

Parameters:
longQuery - The new number of terms.

getLongQuery

public int getLongQuery()
Returns:

setVeryLongQuery

public void setVeryLongQuery(int veryLongQuery)
Sets the number of terms a query needs to be considered as long.

Parameters:
veryLongQuery - The new number of terms.

getVeryLongQuery

public int getVeryLongQuery()
Returns:

setLongQueryMaxSuggestions

public void setLongQueryMaxSuggestions(int maxSuggestionsForLongQueries)
Sets the number of suggestions to choose for very long queries.

Parameters:
maxSuggestionsForLongQueries - The new number of suggestions.

getLongQueryMaxSuggestions

public int getLongQueryMaxSuggestions()
Returns:

readResultHandler

public AbstractResultHandlerConfig readResultHandler(Element element)
Specified by:
readResultHandler in interface ResultHandlerConfig
Overrides:
readResultHandler in class AbstractResultHandlerConfig
Returns:


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.