Description
Hierarchical Facets for Solr. In order to correctly display a taxonomy as a hierarchical facet you need to configure the requisite Twigkit service to retrieve the data structure [configured in your Solr index][1]. First you need to create a service configuration:platform This specifies the configured platform where the taxonomy has been indexed.
parents-suffix The suffix, that if appended to the facet’s fieldname will designate the field containing parent node data. Will depend on how the taxonomy data has been indexed.Example:
Usage
as element:Directive info
- This directive creates new scope.
Parameters
Param | Type | Details |
---|---|---|
query | string | The name of the query object. |
facet-name (optional) | string | Facet name to use from the response object |
platform (optional) | string | The name of the platform to use. |
count-number (optional) | string | Specify how the number representing the count should be formatted. Optional values are plain , formatted , and rounded . Rounded uses a short format (2k for ~2000). Formatted is comma formatted (2,000,000 for 2000000). Default: formatted |
select (optional) | string | How to render each FacetFilter . click : User selects a filter by clicking the value; and mutliselect : Supports selecting multiple filters that get combined with an OR . Default: click |
max-characters (optional) | Number | Limit display value to a certain number of characters, adding … if maxCharacters is exceeded. |
expand-root (optional) | boolean | If only one root filter exists, if this is set to true it will expand this filter showing the children. (Default:false ). |