Excluding certain topics from search results using the transformation parameter method

To exclude DITA topics from WebHelp search results using a transformation parameter, follow these steps:

  1. Create a simple text file that will contain your excluded file patterns. Each pattern must be on a new line. The patterns are considered to be relative to the output directory and they accept wildcards such as '*' (matches zero or more characters) or '?' (matches one character). For more information about the patterns, see https://ant.apache.org/manual/dirtasks.html#patterns.
    Example: Suppose that in your project, you want to exclude all files located in the resources directory and all files located in the topics directory that have a .bak file extension. You could create a simple text file (for example, named exclude.properties), and add the following lines:
    resources/*topics/*.bak
  2. Set the webhelp.search.custom.excludes.file parameter to specify the path to the file that contains the excluded file patterns (for example, exclude.properties in step 1). The parameter can be specified in the parameters section of the template descriptor file associated with your publishing template or in the Parameters tab of the transformation scenario dialog box in Oxygen XML Editor/Author.
  3. Run the transformation.