Package org.opencms.jsp.search.config
Class CmsSearchConfigurationFacetField
java.lang.Object
org.opencms.jsp.search.config.CmsSearchConfigurationFacet
org.opencms.jsp.search.config.CmsSearchConfigurationFacetField
- All Implemented Interfaces:
- I_CmsSearchConfigurationFacet,- I_CmsSearchConfigurationFacetField
public class CmsSearchConfigurationFacetField
extends CmsSearchConfigurationFacet
implements I_CmsSearchConfigurationFacetField
Search configuration special for field facets. Extends @see{org.opencms.jsp.search.config.CmsSearchConfigurationFacet}.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.opencms.jsp.search.config.I_CmsSearchConfigurationFacetI_CmsSearchConfigurationFacet.SortOrder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StringThe index field to use for the facet.protected StringA modifier for filter queries.protected IntegerThe maximal number of entries shown in a facet.protected StringA prefix, all entries of a facet must start with.protected I_CmsSearchConfigurationFacet.SortOrderThe sorting of facet entries.Fields inherited from class org.opencms.jsp.search.config.CmsSearchConfigurationFacetm_explicitExcludeTags, m_ignoreFacetFilters, m_ignoreTags, m_isAndFacet, m_label, m_minCount, m_name, m_preselection
- 
Constructor SummaryConstructorsConstructorDescriptionCmsSearchConfigurationFacetField(String field, String name, Integer minCount, Integer limit, String prefix, String label, I_CmsSearchConfigurationFacet.SortOrder order, String filterQueryModifier, Boolean isAndFacet, List<String> preselection, Boolean ignoreFiltersFromAllFacets, Collection<String> excludeTags) Constructor directly setting all configuration values.
- 
Method SummaryModifier and TypeMethodDescriptiongetField()Returns the index field that is used for the facet.getLimit()Returns the maximal number of entries that should be shown in the facet.Returns the prefix all entries of a facet must match.Returns the sort order that should be used for the facet entries (either "count" or "index").modifyFilterQuery(String facetValue) Returns the (modified) filter query that should be send as filter query when a facet entry is checked.Methods inherited from class org.opencms.jsp.search.config.CmsSearchConfigurationFacetgetIgnoreAllFacetFilters, getIgnoreMaxParamKey, getIgnoreTags, getIsAndFacet, getLabel, getMinCount, getName, getParamKey, getPreSelection, propagateAllFacetNamesMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.jsp.search.config.I_CmsSearchConfigurationFacetgetIgnoreAllFacetFilters, getIgnoreMaxParamKey, getIgnoreTags, getIsAndFacet, getLabel, getMinCount, getName, getParamKey, getPreSelection, propagateAllFacetNames
- 
Field Details- 
m_prefixA prefix, all entries of a facet must start with.
- 
m_fieldThe index field to use for the facet.
- 
m_limitThe maximal number of entries shown in a facet.
- 
m_sortThe sorting of facet entries.
- 
m_fiterQueryModifierA modifier for filter queries.
 
- 
- 
Constructor Details- 
CmsSearchConfigurationFacetFieldpublic CmsSearchConfigurationFacetField(String field, String name, Integer minCount, Integer limit, String prefix, String label, I_CmsSearchConfigurationFacet.SortOrder order, String filterQueryModifier, Boolean isAndFacet, List<String> preselection, Boolean ignoreFiltersFromAllFacets, Collection<String> excludeTags) Constructor directly setting all configuration values.- Parameters:
- field- The index field to use for the facet.
- name- The name of the facet. If- nullit defaults to the name of the index field.
- minCount- The minimal number of hits that is necessary to add a term to the facet.
- limit- The maximal number of facet entries.
- prefix- A prefix all entries of a facet must have.
- label- The label that can be shown over the facet entries in your search form.
- order- The sorting of the facet entries (either "count", which is default, or "index", which causes alphabetical sorting).
- filterQueryModifier- Modifier for the filter queries when a facet entry is checked. Can contain "%(value)" - what is replaced by the facet entry's value.
- 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.
- ignoreFiltersFromAllFacets- 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- 
getFieldDescription copied from interface:I_CmsSearchConfigurationFacetFieldReturns the index field that is used for the facet.- Specified by:
- getFieldin interface- I_CmsSearchConfigurationFacetField
- Returns:
- The index field that is used for the facet.
- See Also:
 
- 
getLimitDescription copied from interface:I_CmsSearchConfigurationFacetFieldReturns the maximal number of entries that should be shown in the facet.- Specified by:
- getLimitin interface- I_CmsSearchConfigurationFacetField
- Returns:
- The maximal number of entries that should be shown in the facet. (Solr: facet.limit)
- See Also:
 
- 
getPrefixDescription copied from interface:I_CmsSearchConfigurationFacetFieldReturns the prefix all entries of a facet must match.- Specified by:
- getPrefixin interface- I_CmsSearchConfigurationFacetField
- Returns:
- The prefix all entries of a facet must match. (Solr: facet.prefix)
- See Also:
 
- 
getSortOrderDescription copied from interface:I_CmsSearchConfigurationFacetFieldReturns the sort order that should be used for the facet entries (either "count" or "index").- Specified by:
- getSortOrderin interface- I_CmsSearchConfigurationFacetField
- Returns:
- The sort order that should be used for the facet entries (either "count" or "index"). (Solr: facet.sort)
- See Also:
 
- 
modifyFilterQueryDescription copied from interface:I_CmsSearchConfigurationFacetFieldReturns the (modified) filter query that should be send as filter query when a facet entry is checked.- Specified by:
- modifyFilterQueryin interface- I_CmsSearchConfigurationFacetField
- Parameters:
- facetValue- The modifier that should be applied the each filter query appended when checking a facet entry. The modifier can contain the macro "%(value)" that is substituted by the facet entry's value. If the modifier is- null, the unmodified filter query is returned.
- Returns:
- The filter query's value.
- See Also:
 
 
-