How to publish a facet group
Facet values are content items used to categorise other pieces of content. They can be used as filtering criteria in search API queries and used to populate finder results for multiple content formats from across GOV.UK.
Facet values are grouped by Facet which are a collection in a Facet Group.
The corresponding document types for these content items are (
facet_group). These are related to one another via the relevant links.
Content Tagger is the central place for managing a facet group. It contains rake tasks to draft a facet group, facets and their facet values and publish these content items.
How to import or update a facet group
- Define your group in content tagger data
- Run the
facets:import_facet_groupRake task to import the facet group as draft
- Run [the
facets:publish_facet_groupRake task to publish the facet group](https://deploy.integration.publishing.service.gov.uk/job/run-rake-task/parambuild/?TARGET_APPLICATION=content-tagger&MACHINE_CLASS=backend&RAKE_TASK=[path-to-facet-yaml]