Compiling the dictionary manually

The dgwordlist utility script is provided to compile the Aspell dictionary.

To manually compile the text-based worddat dictionary into the binary spelldat dictionary, you must use the utility script dgwordlist (on UNIX; on Windows, it is dgwordlist.exe).

The usage for dgwordlist is:
dgwordlist [--out <output_dir>] [--aspell <aspell_location>]
           [--datfiles <aspell_dat_files_location>] [--help]
           [--version] <dbPath>
Argument for dgwordlist Description
--out Specifies the directory where the resulting binary spelldat dictionary file is placed. If not specified, this defaults to the same directory where the input index files reside (<dbPath>).
--aspell Deprecated.

If you specify this flag, it is ignored. The dgwordlist utility no longer needs to know the location of the Aspell dictionary indexing program.

In previous releases, this flag specified the location of Aspell. This parameter could also be omitted if aspell (or aspell.exe on Windows) was in the current path.

--datfiles Specifies the input directory location containing the spelling support files. These support files contain information such as language and character set configuration (these files end with .map or .dat extensions). If not specified, this defaults to the same directory where the input index files reside (<dbPath>).
<dbPath> Specifies a prefix path to the input index data, including the text-based worddat dictionary file. This should match the index prefix given to Dgidx.
--version Prints the version information and exits.
--help Prints the command usage and exits.

In typical operational configurations, the binary spelldat dictionary file created by dgwordlist and the .map and/or .dat files located in the --datfiles directory are placed in the same directory as the indexed data prior to starting the MDEX Engine.

Example of running dgwordlist

$ cp /usr/local/endeca/6.1.3/lib/aspell/* ./final_output
$ /usr/local/endeca/6.1.3/bin/dgwordlist 
/usr/local/endeca/6.1.3/bin/aspell ./final_output/wine
Creating "./final_output/wine-aspell.spelldat"