The
admin?op=updateaspell administrative operation lets you
rebuild the aspell dictionary for spelling correction from the data corpus
without stopping and restarting the MDEX Engine.
The
admin?op=updateaspell operation performs the following
actions:
- Crawls the text search index
for all terms
- Compiles a text version of
the
aspell word list
- Converts this word list to
the binary format required by
aspell
- Causes the Dgraph to finish
processing all existing preceding queries and temporarily stop processing
incoming queries
- Replaces the previous
binary format word list with the updated binary format word list
- Reloads the
aspell spelling dictionary
- Causes the Dgraph to resume
processing queries waiting in the queue
The Dgraph applies the updated settings without needing to restart.
Only one
admin?op=updateaspell operation can be processed at a
time.
The
admin?op=updateaspell operation returns output similar
to the following in the Dgraph error log:
...
aspell update ran successfully.
...
Note: 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.
Agraph support
The
admin?op=updateaspell is not supported in the Agraph.