Package org.opencms.jsp.search.config
Class CmsSearchConfigurationDidYouMean
java.lang.Object
org.opencms.jsp.search.config.CmsSearchConfigurationDidYouMean
- All Implemented Interfaces:
I_CmsSearchConfigurationDidYouMean
public class CmsSearchConfigurationDidYouMean
extends Object
implements I_CmsSearchConfigurationDidYouMean
Class keeping the configuration of the "Did you mean ...?" feature of the search form.
-
Constructor Summary
ConstructorDescriptionCmsSearchConfigurationDidYouMean
(String param, Boolean collate, Integer count) Constructor setting all the state. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a flag, indicating if collation is turned on or off.int
getCount()
Returns the maximal number of suggestions.Returns the parameter name of the request parameter used to send the current query string for spellchecking.
-
Constructor Details
-
CmsSearchConfigurationDidYouMean
Constructor setting all the state.- Parameters:
param
- The request parameter used to send the spellcheck query.collate
- Flag, indicating if the results should be collated.count
- The maximal number of suggestions.
-
-
Method Details
-
getCollate
Description copied from interface:I_CmsSearchConfigurationDidYouMean
Returns a flag, indicating if collation is turned on or off.- Specified by:
getCollate
in interfaceI_CmsSearchConfigurationDidYouMean
- Returns:
- A flag, indicating if collation is turned on or off.
- See Also:
-
getCount
Description copied from interface:I_CmsSearchConfigurationDidYouMean
Returns the maximal number of suggestions.- Specified by:
getCount
in interfaceI_CmsSearchConfigurationDidYouMean
- Returns:
- The maximal number of suggestions.
- See Also:
-
getQueryParam
Description copied from interface:I_CmsSearchConfigurationDidYouMean
Returns the parameter name of the request parameter used to send the current query string for spellchecking.- Specified by:
getQueryParam
in interfaceI_CmsSearchConfigurationDidYouMean
- Returns:
- The request parameter name used to send the current query string for spellchecking.
- See Also:
-