To cluster documents in the Search results component, proceed as follows:
- Go to Administration, and select Design, then Search results.
- Open the Default search.
- Select or add the Search results component.
-
Select the Settings tab (cogwheel) of the Search results component.
-
In the Search results section, select a metadata key and its corresponding Result template.
- The Search results component can show individual results differently based on their metadata. For example, it is possible to create a template for tutorials, and another for reference guides.
If no template is selected, the default template applies.
-
Go back to the Search results menu, and select a Result template.
- Add one or multiple Result metadata components.
-
For each Result metadata component, select a metadata key.
Users can choose a document variant based on the metadata key. For example, for a metadata key of
audience, users can choose betweenpublic,internal, etc. -
For each metadata used for clustering, select the Use for clustering results check box.
It is possible to choose if a document opens automatically after selecting a clustering metadata by selecting the Go directly to document when selecting a cluster check box.
When using the designed Search results page, it is now possible to select a specific version of a document by selecting the desired metadata value.
In the case of complex clusters with multiple clustering metadata, some results might not be directly accessible.