Renaming of facet values built from collections

Hello, I’m keen to know how to customise facet values collected via the following collection indexer_options entry: “-collfield=X” (done for multiple collections within a meta collection).

example: create the following mappings:
live-documents => Documents
live-people => People
etc.

I can’t seem to find this in the documentation.

Thanks
Kevin

Hi Kevin,

This will depend on what version of Funnelback you are using.

If you are using 15.12 the you can create a facet using the collection type category source: Facet categories - Funnelback Documentation - Version 15.12.0

If you are using 15.10 or earlier you will need to create a metadata type facet using the metadata field you have assigned for the collection metadata (eg. -collfield=X assigns ‘X’ as the metadata class’).

This will provide you with a collection facet that has the collection IDs as the choices. If you then want to rename these you can make use of the faceted navigation rename options that are available if you use the hook script that is part of the faceted navigation github project: GitHub - funnelback/faceted-navigation: Replacement macros for faceted navigation display. Adds support for checkbox facets and faceted navigation category sort and rename. You can use the hook script which will provide you with access to the sort and rename options without making use of the faceted_navigation_v2.ftl template.