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 java.lang.Object implements I_CmsSearchConfigurationDidYouMean
Class keeping the configuration of the "Did you mean ...?" feature of the search form.
-
-
Constructor Summary
Constructors Constructor Description CmsSearchConfigurationDidYouMean(java.lang.String param, java.lang.Boolean collate, java.lang.Integer count)
Constructor setting all the state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getCollate()
Returns a flag, indicating if collation is turned on or off.int
getCount()
Returns the maximal number of suggestions.java.lang.String
getQueryParam()
Returns the parameter name of the request parameter used to send the current query string for spellchecking.
-
-
-
Constructor Detail
-
CmsSearchConfigurationDidYouMean
public CmsSearchConfigurationDidYouMean(java.lang.String param, java.lang.Boolean collate, java.lang.Integer count)
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 Detail
-
getCollate
public boolean 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:
I_CmsSearchConfigurationDidYouMean.getCollate()
-
getCount
public int 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:
I_CmsSearchConfigurationDidYouMean.getCount()
-
getQueryParam
public java.lang.String 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:
I_CmsSearchConfigurationDidYouMean.getQueryParam()
-
-