#### 19.10.6 Excluding content from being searched

DITA topicref attribute @search (with value yes or no) allows you to specify whether the referenced topic is to be included in full-text search. DITA2Go excludes from OmniHelp full-text search topics that are referenced with @search="no".

Do it with PI markers

If your DITA maps do not include values for the topicref @search attribute, you can achieve the same effect with PI markers inserted in the topicrefs, and a ditaval file. For example:

    <?dthtm Search="no" ?>

In this example, the effect on DITA2Go output is the same as if you had included @search="no" in the topicref for each such topic. You can get the same effect by placing the PI marker inside the <title> element of the topic.

Paragraph-level granularity

You can achieve paragraph-level search granularity with PI markers placed within a topic; the last Search value in a paragraph applies to the entire paragraph.

Previous Topic: 19.10.5 Excluding search terms

Next Topic: 19.10.7 Using regular expressions in search

Parent Topic: 19.10 Configuring full-text search for OmniHelp

Sibling Topics:

19.10.1 Understanding how OmniHelp FTS works

19.10.2 Generating search data

19.10.3 Supporting search for non-ANSI text

19.10.4 Specifying length of search terms

19.10.5 Excluding search terms

19.10.7 Using regular expressions in search

19.10.8 Highlighting search terms found in topics