Updating spelling dictionaries for a data domain

You can update the spelling dictionaries for a data domain with the updateSpellingDictionaries operation of the Manage Web Service.

The updateSpellingDictionaries operation of the Manage Web Service lets you rebuild the spelling dictionaries for spelling correction from the data corpus while continuing to issue queries and updates to the data domain, without stopping and restarting the Dgraph nodes. Run this operation after you have added data records to the data domain, to enable spelling correction in the Dgraph processes for this data domain.

Note: Running the request to the Manage Web Service with updateSpellingDictionaries operation is equivalent to using the endeca-cmd update-spelling-dictionaries dataDomain, where dataDomain is the name of the currently enabled data domain for which you are updating the spelling dictionaries.

During the data ingest process, you can run the request with the updateSpellingDictionaries operation periodically to update the spelling dictionary used by the Dgraph nodes in the data domain for one of the Dgraph process features known as Automatic Spelling Correction and DYM (Did You Mean?).

For detailed information on spelling dictionaries, see the Oracle Endeca Server Developer's Guide.

To update the spelling dictionaries for the data domain:

  1. In the running Endeca Server cluster that is hosting the data domain, access the Manage Web Service at the Endeca Server host and port, as in this example:
    http://host:port/endeca-server/ws/manage
  2. Use the updateSpellingDictionaries operation and specify the name of the data domain, as in this abbreviated example of a Manage Web Service request:
    <ns1:updateSpellingDictionaries xmlns:ns1="http://www.endeca.com/endeca-server/manage/1/0">
     <ns1:name>MyDataDomain</ns1:name>
    </ns1:updateSpellingDictionaries>

    where MyDataDomain is the name of the data domain.

If the data domain exists and is enabled, the operation completes successfully, returning an empty web service success response (updateSpellingDictionariesResponse). This means that the spelling dictionaries have been updated successfully.