Enabling Spelling Corrections

You can globally or selectively enable the use of the standard Watson Explorer Engine spelling corrector source. To use the spelling corrector with all other sources automatically, you can add it to the project-wide meta-search option query.pre-selected-sources. This option contains a space or comma-separated list of sources that will always be queried when any source is queried. This makes it easy to add default sources, such as spelling corrector or key match sources, that you want to use with all other sources. You can add the Watson Explorer Engine spelling corrector to this list by adding vivisimo-spelling-corrector to this option on any Project's Metasearch tab.

If you do not invoke the spelling corrector automatically through the query.pre-selected-sources meta-search option, you can still selectively enable spelling corrections for any of your sources. To do this, add the default Watson Explorer Engine Spelling Corrector source (vivisimo-spelling-corrector in the source list) to a source bundle containing the source with which you want to use it.

For a standalone source, create a new source bundle and add both the spelling corrector and the standalone source to the bundle.

Watson Explorer Engine provides multiple methods for automatically and manually expanding a user's query. These methods are mostly self-contained, which can cause logical issues when using multiple methods on the same query. For example, wild-card expansions are performed before the spelling correction dictionary is applied. This issue becomes more complicated when multiple expansion methods are applied. Customization will be required if multiple query expansion methods are used and the required behavior differs from the default.

Note: In the default display, the spelling correction $correction-url does not add other input form parameters that need to be preserved on subsequent requests. For example, you can redeclare $url-script-base in your display with all of the variables that you plan to use:
<xsl:variable name="url-script-base"
select="viv:url-add-non-void-params($url-query-meta, $dbp,
$debug, $pfp, $profile, $prsp, $personality, $spp,
$cgi.spotlight-preview)" />

Extra instructions if using HTTP authentication

If the web server has HTTP authentication enabled, then it is necessary to specify the user and password to authenticate to the HTTP server to access the spell correction component.
  1. Create a new source by clicking the + button next to Sources on the administration tool.
  2. Enter a name for the new source.
  3. Click template Reference for the Source Type, and then select Spelling Corrector as the template and click Add.
  4. Enter the HTTP authentication user for Username, and the HTTP authentication password for Password.
  5. Then click OK to save the changes.

The newly created source can be specified as query.pre-selected-sources or included in a source bundle to enable spelling correction when HTTP authentication is enabled.