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
ConstructorsConstructorDescriptionCmsSearchConfigurationDidYouMean(String param, Boolean escapeQueryChars, Boolean collate, Integer count) Constructor setting all the state. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a flag, indicating if collation is turned on or off.intgetCount()Returns the maximal number of suggestions.booleanReturns a flag, indicating if special query characters (e.g., ":", "(", "[" ...) should be escaped in the query string.Returns the parameter name of the request parameter used to send the current query string for spellchecking.
-
Constructor Details
-
CmsSearchConfigurationDidYouMean
public CmsSearchConfigurationDidYouMean(String param, Boolean escapeQueryChars, Boolean collate, Integer count) Constructor setting all the state.- Parameters:
param- The request parameter used to send the spellcheck query.escapeQueryChars- Flag, indicating if query characters should be escaped.collate- Flag, indicating if the results should be collated.count- The maximal number of suggestions.
-
-
Method Details
-
getCollate
Description copied from interface:I_CmsSearchConfigurationDidYouMeanReturns a flag, indicating if collation is turned on or off.- Specified by:
getCollatein interfaceI_CmsSearchConfigurationDidYouMean- Returns:
- A flag, indicating if collation is turned on or off.
- See Also:
-
getCount
Description copied from interface:I_CmsSearchConfigurationDidYouMeanReturns the maximal number of suggestions.- Specified by:
getCountin interfaceI_CmsSearchConfigurationDidYouMean- Returns:
- The maximal number of suggestions.
- See Also:
-
getEscapeQueryChars
Description copied from interface:I_CmsSearchConfigurationDidYouMeanReturns a flag, indicating if special query characters (e.g., ":", "(", "[" ...) should be escaped in the query string.- Specified by:
getEscapeQueryCharsin interfaceI_CmsSearchConfigurationDidYouMean- Returns:
- A flag, indicating if special query characters (e.g., ":", "(", "[" ...) should be escaped in the query string.
- See Also:
-
getQueryParam
Description copied from interface:I_CmsSearchConfigurationDidYouMeanReturns the parameter name of the request parameter used to send the current query string for spellchecking.- Specified by:
getQueryParamin interfaceI_CmsSearchConfigurationDidYouMean- Returns:
- The request parameter name used to send the current query string for spellchecking.
- See Also:
-