public class CmsSearchConfigurationFacetField extends CmsSearchConfigurationFacet implements I_CmsSearchConfigurationFacetField
I_CmsSearchConfigurationFacet.SortOrder| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_field
The index field to use for the facet.
|
protected java.lang.String |
m_fiterQueryModifier
A modifier for filter queries.
|
protected java.lang.Integer |
m_limit
The maximal number of entries shown in a facet.
|
protected java.lang.String |
m_prefix
A prefix, all entries of a facet must start with.
|
protected I_CmsSearchConfigurationFacet.SortOrder |
m_sort
The sorting of facet entries.
|
m_ignoreFacetFilters, m_ignoreTags, m_isAndFacet, m_label, m_minCount, m_name, m_preselection| Constructor and Description |
|---|
CmsSearchConfigurationFacetField(java.lang.String field,
java.lang.String name,
java.lang.Integer minCount,
java.lang.Integer limit,
java.lang.String prefix,
java.lang.String label,
I_CmsSearchConfigurationFacet.SortOrder order,
java.lang.String filterQueryModifier,
java.lang.Boolean isAndFacet,
java.util.List<java.lang.String> preselection,
java.lang.Boolean ignoreFiltersFromAllFacets)
Constructor directly setting all configuration values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getField()
Returns the index field that is used for the facet.
|
java.lang.Integer |
getLimit()
Returns the maximal number of entries that should be shown in the facet.
|
java.lang.String |
getPrefix()
Returns the prefix all entries of a facet must match.
|
I_CmsSearchConfigurationFacet.SortOrder |
getSortOrder()
Returns the sort order that should be used for the facet entries (either "count" or "index").
|
java.lang.String |
modifyFilterQuery(java.lang.String facetValue)
Returns the (modified) filter query that should be send as filter query when a facet entry is checked.
|
getIgnoreAllFacetFilters, getIgnoreMaxParamKey, getIgnoreTags, getIsAndFacet, getLabel, getMinCount, getName, getParamKey, getPreSelection, propagateAllFacetNamesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIgnoreAllFacetFilters, getIgnoreMaxParamKey, getIgnoreTags, getIsAndFacet, getLabel, getMinCount, getName, getParamKey, getPreSelection, propagateAllFacetNamesprotected java.lang.String m_prefix
protected java.lang.String m_field
protected java.lang.Integer m_limit
protected I_CmsSearchConfigurationFacet.SortOrder m_sort
protected java.lang.String m_fiterQueryModifier
public CmsSearchConfigurationFacetField(java.lang.String field, java.lang.String name, java.lang.Integer minCount, java.lang.Integer limit, java.lang.String prefix, java.lang.String label, I_CmsSearchConfigurationFacet.SortOrder order, java.lang.String filterQueryModifier, java.lang.Boolean isAndFacet, java.util.List<java.lang.String> preselection, java.lang.Boolean ignoreFiltersFromAllFacets)
field - The index field to use for the facet.name - The name of the facet. If null 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.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.public java.lang.String getField()
I_CmsSearchConfigurationFacetFieldgetField in interface I_CmsSearchConfigurationFacetFieldI_CmsSearchConfigurationFacetField.getField()public java.lang.Integer getLimit()
I_CmsSearchConfigurationFacetFieldgetLimit in interface I_CmsSearchConfigurationFacetFieldI_CmsSearchConfigurationFacetField.getLimit()public java.lang.String getPrefix()
I_CmsSearchConfigurationFacetFieldgetPrefix in interface I_CmsSearchConfigurationFacetFieldI_CmsSearchConfigurationFacetField.getPrefix()public I_CmsSearchConfigurationFacet.SortOrder getSortOrder()
I_CmsSearchConfigurationFacetFieldgetSortOrder in interface I_CmsSearchConfigurationFacetFieldI_CmsSearchConfigurationFacetField.getSortOrder()public java.lang.String modifyFilterQuery(java.lang.String facetValue)
I_CmsSearchConfigurationFacetFieldmodifyFilterQuery in interface I_CmsSearchConfigurationFacetFieldfacetValue - 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.I_CmsSearchConfigurationFacetField.modifyFilterQuery(java.lang.String)