Stop word tool for Db2 Text Search

The stop word tool is a command-line utility for the text search server that provides a convenient way to remove frequently occurring terms from queries, referred to as stop words. You can add or modify the list of stop words per language and then update stop word dictionaries by using the stop word tool.

When you run the stop word tool, it detects which stop word XML files are modified and updates the corresponding stop word dictionaries. Stop the Db2 Text Search services before running the stop word tool.

You must append the application suffix to all text search server tools on every supported platform unless mentioned otherwise.
  • On Linux® or UNIX systems: stopwordTool.sh
  • On Windows systems: stopwordTool.bat

stopwordTool syntax

Read syntax diagramSkip visual syntax diagramstopwordToolresource_path locale help

Parameters

stopwordTool resource_path
Specifies the directory that contains the stop word XML files and dictionaries. .
  • The default directory for an integrated text search server:
    <DB2PATH>/sqllib/db2tss/config/dictionaries
  • The default directory for a stand-alone text search server:
    ECMTS_HOME>/config/dictionaries
locale
Specifies the two or five character locale setting for writing messages to the trace file. If you do not specify this setting, the default value en (English) is used.
help
Prints the stop word tool command usage. The usage information is also printed if you run the stop word tool without a required argument.

Examples

Create a stop word XML file.
<?xml version="1.0" encoding="UTF-8"?>
<stopWords>
	<stopWord>WebSphere Application Server</stopWord>
	<stopWord>OmniFind Enterprise Edition</stopWord>
</stopWords>
Add a stop word dictionary on the Windows platform.
stopwordTool.bat "C:\Program Files\IBM\ECMTextSearch\config\dictionaries"