Facets can be shown next to results in the search widget to help users filter the results. You can use the Configurationspage in the Google Cloud console to specify which fields to use as facets on your widget for apps with structured data or unstructured data with metadata.
Facet configuration is not supported for widgets for apps with website data or unstructured data without metadata.
If you use access control for your data sources, these configuration settings also apply to the web app.
Before setting a field as a facet, make sure that the field is set to Retrievableand Indexable. For more information, see Configure field settings .
To set a field as a facet:
-
In the Google Cloud console, go to the Agent Builderpage.
-
Click the name of the app that you want to edit.
-
Click Configurations.
-
Click the UItab.
-
If you have multiple data stores connected to your app, select the data store to configure facet settings for.
-
Expand the Facet settingssection.
-
Click Add facet.
-
Select a field to use as a facet.
-
Enter a display name for the facet.
-
Click Save and publish.