It is possible to set a default filter in the Built-in search bar component. This default filter applies to all users.
For example, if a portal contains documentation for various software versions, it is possible to default to the latest version's documentation.
To do so:
- Add a Built-in search bar component.
- Select it.
- Under Settings, select Add new quick filter.
- Name the filter, and select the metadata key and metadata key value to set as default filter.
- Select Add filter.
- Under Default quick filters, select the filter created previously.
- Save and publish the page.
Users can still remove the filter, if they want to do so. To completely remove access to documents according to a document metadata key and its value, see Access rules.