Exclude a Topic from Search
You can set up topics to be included in your HTML5 output, but not to appear as results in the search. This way you make your search more useful by only including more detailed topics that give your users the information they need.
Release notes are often excluded from the search results because they are useful to have in your documentation, but they rarely provide enough detail.
Tip
You can also exclude topics from the navigation sidebar (also known as the TOC), see Exclude Content from Publication TOC.
To exclude a topic from the search results:
-
Select the topic or component in the Content Manager to open it in the Editor.
-
Select the
section
element in the Element Structure Menu. -
Select Go to element.
-
Add the
role
attribute in the Element Attributes Panel and set the value tonotinsearch
.Note
The
role
attribute is not inherited. If you have different levels of topics, you need to add therole
to all of the sections that you want to exclude from the search, not just thesection
of the top-level topic. -
Select Save.
When you publish the topic to your HTML5 help center, the search will not include the topic in its results.