Configuring SpellcheckerSource.config


Prerequisites: Search.config must be configured for Search Suggest. See Configuring Search.config for Search Suggest for details.

Use this DEX component to search against an independent Search Suggest index. This DEX search component offers spellcheck options to users.
To configure SpellcheckerSource.config for Search Suggest:
  1. Navigate to SpellcheckerSource.config, and open the file in a text editor.
    Note
    This source file can reside anywhere. Generally, the App_Data folder contains this SpellcheckerSource.config (e.g., [Drive]:\[path-to-DSS-root-folder]\App_Data\SpellcheckerSource.config).
    The example below displays generic code contained within SpellcheckerSource.config.
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <configSections>
            <section name="Search" type="Ingeniux.Search.Configuration.SpellCheckerSourceConfig, Ingeniux.Search" />
        </configSections>
        <Search indexLocation="App_Data\Spellchecker_Index">
            <Settings>
                <add name="IncludeContentIndexTerms" value="true" />
            </Settings>
            <Dictionaries>
                <add name="short" value="C:\ancillary-resources\words.txt" />
            </Dictionaries>
            <Taxonomies>
                <add name="eduTax" value="C:\igxdss\dss-published-content\taxonomytree.xml" />
            </Taxonomies>
        </Search>
    </configuration>       
  2. Locate the <Search> tag, and enter the filepath to the Spellchecker index files as the value of the @indexLocation attribute.
    Note
    The default value is App_Data\Spellchecker_Index.
    For example, the <Search> element opening tag should look similar to the following code:
    <Search indexLocation="App_Data\Spellchecker_Index">
  3. Optional: You can enable the Spellcheck dictionary construction using terms from the main index. Locate the <add> element within <Settings> and set the following attribute values:
    1. Enter IncludeContentIndexTerms in the @name attribute.
    2. Enter true in the @value element. The default is false.
    Note
    This option indexes all terms from the main index for the spellchecking index, thus providing the possibility of spellcheck-assisted searches. Depending on the amount of documents and terms in the main content index, enabling this option may increase indexing time. Also, after you configure this option, you must re-index all associated indexes.
    For example, the <add> element should look similar to the following code:
    <Settings>
        <add name="IncludeContentIndexTerms" value="true" />
    </Settings>
  4. Locate the <add> element within the <Dictionaries> element and set the following attributes:
    1. Enter an arbitrary, unique name in the @name attribute.
    2. In the @value attribute, enter the filepath to the plain text file of properly spelled words For example, the <add> element should look similar to the following code:
      <Dictionaries>
          <add name="ShortDictionary" value="[Drive]:\ancillary-resources\words.txt" />
      </Dictionaries>
  5. Locate the <add> element within the <Taxonomies> element and set the following attributes:
    1. Enter an arbitrary, unique name in the @name attribute.
    2. Enter the filepath to the TaxonomyTree.xml (the published folder within the DSS folder structure contains this file) in the @value attribute.
    For example, the <add> element should look similar to the following code:
    <Taxonomies>
        <add name="eduTax" value="[Drive]:\[path-to-DSS-directory]\dss-published-content\taxonomytree.xml" />
    </Taxonomies>
  6. Save and close SpellcheckerSource.config.