Package org.opencms.jsp.search.config
Class CmsSearchConfigurationFacetRange
java.lang.Object
org.opencms.jsp.search.config.CmsSearchConfigurationFacet
org.opencms.jsp.search.config.CmsSearchConfigurationFacetRange
- All Implemented Interfaces:
I_CmsSearchConfigurationFacet
,I_CmsSearchConfigurationFacetRange
public class CmsSearchConfigurationFacetRange
extends CmsSearchConfigurationFacet
implements I_CmsSearchConfigurationFacetRange
Search configuration special for field facets. Extends @see{org.opencms.jsp.search.config.CmsSearchConfigurationFacet}.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencms.jsp.search.config.I_CmsSearchConfigurationFacet
I_CmsSearchConfigurationFacet.SortOrder
Nested classes/interfaces inherited from interface org.opencms.jsp.search.config.I_CmsSearchConfigurationFacetRange
I_CmsSearchConfigurationFacetRange.Other
-
Field Summary
Fields inherited from class org.opencms.jsp.search.config.CmsSearchConfigurationFacet
m_explicitExcludeTags, m_ignoreFacetFilters, m_ignoreTags, m_isAndFacet, m_label, m_minCount, m_name, m_preselection
-
Constructor Summary
ConstructorDescriptionCmsSearchConfigurationFacetRange
(String range, String start, String end, String gap, Collection<I_CmsSearchConfigurationFacetRange.Other> other, Boolean hardEnd, String name, Integer minCount, String label, Boolean isAndFacet, List<String> preselection, Boolean ignoreFilterFromAllFacets, Collection<String> excludeTags) Constructor directly setting all configuration values. -
Method Summary
Modifier and TypeMethodDescriptiongetEnd()
Returns the value of facet.range.end for the facet.getGap()
Returns the value of facet.range.gap for the facet.boolean
Returns the value of facet.range.hardend for the facet.getOther()
Returns the values of facet.range.other for the facet.getRange()
Returns the numeric index field that is used for the facet, i.e., the value of facet.range.getStart()
Returns the value of facet.range.start for the facet.Methods inherited from class org.opencms.jsp.search.config.CmsSearchConfigurationFacet
getIgnoreAllFacetFilters, getIgnoreMaxParamKey, getIgnoreTags, getIsAndFacet, getLabel, getMinCount, getName, getParamKey, getPreSelection, propagateAllFacetNames
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.jsp.search.config.I_CmsSearchConfigurationFacet
getIgnoreAllFacetFilters, getIgnoreMaxParamKey, getIgnoreTags, getIsAndFacet, getLabel, getMinCount, getName, getParamKey, getPreSelection, propagateAllFacetNames
-
Field Details
-
m_range
The range field to use for the facet.
-
-
Constructor Details
-
CmsSearchConfigurationFacetRange
public CmsSearchConfigurationFacetRange(String range, String start, String end, String gap, Collection<I_CmsSearchConfigurationFacetRange.Other> other, Boolean hardEnd, String name, Integer minCount, String label, Boolean isAndFacet, List<String> preselection, Boolean ignoreFilterFromAllFacets, Collection<String> excludeTags) Constructor directly setting all configuration values.- Parameters:
range
- The numeric index field to use for the facet.start
- The begin of the range of the complete facetend
- The end of the range of the complete facetgap
- The range of one facet entryother
- The way how to group other valueshardEnd
- Flag, indicating if the last facet item range should end atend
(usetrue
) or extend to the full size ofgap
(usefalse
).name
- The name of the facet. Ifnull
it defaults to the name of the index field.minCount
- The minimal number of hits that is necessary to add a term to the facet.label
- The label that can be shown over the facet entries in your search form.isAndFacet
- If set to true, the facets filters for results containing all checked entries. Otherwise it filters for results containing at least one checked entry.preselection
- The list of facet items that should be preselected for the first search.ignoreFilterFromAllFacets
- A flag, indicating if filters from all facets should be ignored or not.excludeTags
- The tags (keys) of (filter) queries to be not taken into account for the facet. If "ignoreFiltersFromFacets" is true, the according tags for facets and queries will be added.
-
-
Method Details
-
getEnd
Description copied from interface:I_CmsSearchConfigurationFacetRange
Returns the value of facet.range.end for the facet.- Specified by:
getEnd
in interfaceI_CmsSearchConfigurationFacetRange
- Returns:
- the value of facet.range.end for the facet.
- See Also:
-
getGap
Description copied from interface:I_CmsSearchConfigurationFacetRange
Returns the value of facet.range.gap for the facet.- Specified by:
getGap
in interfaceI_CmsSearchConfigurationFacetRange
- Returns:
- the value of facet.range.gap for the facet.
- See Also:
-
getHardEnd
Description copied from interface:I_CmsSearchConfigurationFacetRange
Returns the value of facet.range.hardend for the facet.- Specified by:
getHardEnd
in interfaceI_CmsSearchConfigurationFacetRange
- Returns:
- the value of facet.range.hardend for the facet.
- See Also:
-
getOther
Description copied from interface:I_CmsSearchConfigurationFacetRange
Returns the values of facet.range.other for the facet.- Specified by:
getOther
in interfaceI_CmsSearchConfigurationFacetRange
- Returns:
- the values of facet.range.other for the facet.
- See Also:
-
getRange
Description copied from interface:I_CmsSearchConfigurationFacetRange
Returns the numeric index field that is used for the facet, i.e., the value of facet.range.- Specified by:
getRange
in interfaceI_CmsSearchConfigurationFacetRange
- Returns:
- The numeric index field that is used for the facet, i.e., the value of facet.range.
- See Also:
-
getStart
Description copied from interface:I_CmsSearchConfigurationFacetRange
Returns the value of facet.range.start for the facet.- Specified by:
getStart
in interfaceI_CmsSearchConfigurationFacetRange
- Returns:
- the value of facet.range.start for the facet.
- See Also:
-