updateaspell

The admin/datastore?op=updateaspell administrative operation lets you rebuild the aspell dictionary for spelling correction from the data corpus while continuing to issue queries and updates to the Dgraph and without stopping and restarting it.

Run this command after you have added data records to the Dgraph, to enable spelling correction in the Dgraph.

During the data ingest process, you can run the admin/datastore?op=updateaspellcommand periodically to update the spelling dictionary used by the Dgraph for Automatic Spelling Correction and Did You Mean (DYM).

In a cluster of Dgraph nodes, this command should be run on the leader node only.

The admin/datastore?op=updateaspell operation performs the following actions: The Dgraph applies the updated settings while continuing to run queries and without needing to restart.

Only one admin/datastore?op=updateaspell operation can be processed at a time.

Note: If admin/datastore?op=updateaspell is started within an outer transaction, it must reference the correct transaction ID, as in the following example:
admin/wine?op=updateaspell&outerTransactionId=42
If a transaction is running and you don't specify the ID, or the ID is incorrect, the request is rejected.
The admin/datastore?op=updateaspell operation returns output similar to the following in the Dgraph error log:
...
spellengine aspell ran successfully.
If you start the Dgraph with the -v flag, the output also contains a line similar to the following:
Time taken for updateaspell, including wait time on any 
previous updateaspell, was 290.378174 ms.