Use the updateSpellingDictionaries operation of the Data Ingest Web Service to update the spelling dictionaries in the data domain. Run this operation after you have added data records to the data domain, to enable spelling correction in the Dgraph.
This operation rebuilds the spelling dictionaries for spelling correction from the data corpus while the Endeca Server continues to run. The Endeca Server can continue processing end-user queries and updates to the data domain's index, 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.
Additionally, during the data ingest process, you can run the request with the updateSpellingDictionaries operation periodically to update the spelling dictionary the data domain for one of the Endeca Server features known as Automatic Spelling Correction and DYM (Did You Mean?).
In a cluster of Dgraph nodes ( a data domain running on multiple hosting Endeca Server machines), this request is routed to the leader node, because it is an updating operation.
The constraint settings include minimum word occurrences and maximum and minimum number of characters, for records and attribute values. The Dgraph nodes in the data domain use these constraints to update the spelling dictionaries. You can change them in the Global Configuration Record.
To update the spelling dictionaries for 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.