faceting property lets you customize this behavior per dimension.
You can configure dimensions to have suggestions that are:
- Independent of all other filters - Specified using
depends_on: [] - Dependent only on specific fields - Specified using
depends_on: [<fields>] - Filtered by all fields except specific ones - Specified using
exclude: [<fields>]
Limitations
- This parameter can’t be used with
suggest_from_fieldorsuggest_from_topicon the same dimension - Cross-view references are only allowed in topic-scoped views
- Field references in
depends_onorexcludemust resolve to existing dimensions or filter-only fields (not measures) - Self-references (a dimension depending on or excluding itself) will generate a warning
depends_onandexcludecan’t be used on the same dimension
Syntax
Properties
The name of the dimension. Dimension names must:
- Be unique within the view
- Start with a letter
- Contain only alphanumeric characters and underscores
Examples
Independent suggestions
Makegender suggestions available regardless of other filter selections:
Independent suggestions
Include-list faceting
city suggestions should only be filtered by country and state selections, ignoring all other active filters:
Suggestions dependent on specific fields
Exclude-list faceting
first_name suggestions should be filtered by all fields except state:
Exclude specific fields
Cross-view faceting in topics
In a topic-scoped view, reference fields from other views in the topic. This example makescity suggestions depend on the region from the orders view:
Cross-view suggestions
Per-topic customization
Different topics can configure different faceting behavior for the same base view:Related parameters
suggest_from_field- Alternative way to control suggestion behavior by pulling from a different fieldsuggest_from_topic- Pull suggestions from a field in a different topicsuggestion_list- Provide a static list of suggestions