Title: How to customise the paths used by Stemming Language Selector 2

Ref: ED104

Last updated: 15-Aug-2007

There are two ways to do this:

a) By editing the short-cut properties

b) By editing the configuration file


Option (b) is more suitable for developers that wish to distribute the Stemming Language Selector with
their application, or if a large number of Language Extension Packs are installed with dtSearch Network for example. See this article for details.

Step 1. In the Windows Start Menu, under Programs|dtSearch Developer|Tools, right click on the short-cut to Stemming Language Selector, select Properties...

.

Step 2. Edit the path in the Target box, you need to add the paths where the stemming files
are located (sourceStemPath) and where the dtSearch Engine
expects to find the stemming.dat file (targetStemPath)
after the file path already in the box.

The format required is "filepath of stemSelect.exe" ["-s sourceStemPath"] ["-t targetStemPath"]
You can add either or both the paths, you must add -s in front of the path where the stemming files are (sourceStemPath,
and -t in front of where the dtsearch application expects to find the stemming.dat file (targetStemPath)

Example:

"C:\Program Files\dtSearch\Language\StemSelect.exe” “-s C:\Program Files\dtSearch\Language\Stemming” “-t C:\Program Files\dtSearch\bin"

The example shows the normal paths as used in a default dtSearch Desktop installation, your application may need different paths. The paths can be
anywhere on the same machine.

Important any paths with spaces must be enclosed in quotation marks as shown.

The user must have read\write permissions for the targetStemPath and read permission for the sourceStemPath.

Step 3. Press the Apply button (ALt + A) and if no error messages, click OK (Enter).

Step 4: Run Stemming Language Selector to check that it can find the stemming language files and that when you have selected a language
that the dtSearch application is using the newly selected language. If you experience problems, create a debug log to find out the paths that the
Stemming Language Selector is using. See this article for how to create a debug log.