Individual search result
About this pattern
A search results list is made up of multiple individual search results. Each search result represents one webpage or content item that’s relevant to the search term(s).
How to use this pattern
A search result must have enough information so users can compare results and decide what they need.
Every search result must include:
- a heading linking to the relevant webpage or content item
- summary text
You can also choose to include:
- a subheading
- links to parent pages, such as a guide or publication
- an image
- page metadata
- a promoted search result label
Include optional elements based on:
- the type of content – for example, a thumbnail image for a profile picture
- what information you have about the content – for example, publication date
- what information will help users compare search results and find the most relevant site content
You can use a combination of different search result layouts in a search results list.
Linked heading
Every search result must have a heading. This is also a link to the relevant webpage.
The heading must clearly describe what the content is. You should keep the heading short, ideally less than 60 characters.
Subheading
Use an optional subheading to add extra information that does not fit in the main heading.
For example, for a job profile page, add the job title as the main heading and the person’s name as the subheading.
Summary text
You should include summary text underneath the headings.
This is a brief description of the search result that gives the heading context. You can include a highlighted search term within it.
Summary text should be less than 250 characters.
Do not include links in the summary text.
Page metadata
A search result can include page metadata which gives additional information about the content. For example, the publication date or category.
Use the shortened version of page metadata to show 1 or 2 pieces of important information.
Use page metadata that is useful to the user. For example, a publication date can help users identify the most up-to-date publications or news items.
Links to parent pages
When a content item is a sub-page of a larger set of content, you can include a link to the parent page.
The link is inset and will appear after the text ‘part of’.
If the content item is part of multiple sets of content, then each set of content should be linked.
Using parent page links gives the user a greater understanding of what the content is about and helps them to find related content.
Image
You can include an image in a search result. Put the image underneath the heading and to the left of the search result text.
The image must relate to the search result. Do not use purely decorative images.
Use images carefully. Only use them if it will help someone identify the search result they need. For example, use a person’s photo if the webpage is about them.
Follow the guidance on using images.
Promoted search result
You can put specific results at the top of the search results and label them to show that they are distinct from the others.
For example, label a result as ‘recommended’ or ‘most relevant’ if it’s important content to highlight.
Limit the number of promoted search results you show. Fewer promoted results have more impact.
Promoted results do not count towards the total number of results.
If search results span multiple pages then promoted results should only appear on page one.
We plan to do more user research to see how users understand and interact with promoted results.
Feedback, help and support
If you need help or support you can e-mail us at designsystem@gov.scot
There is a problem
Thanks for your feedback