Returns a Promise that resolves when the indexing process is complete.
Index all available documents in the world and store them in a word tree.
Return entries that match the given string prefix.
The prefix.
Additional options to configure behaviour.
A number of entries that have the given prefix, grouped by document type.
Add an entry to the index.
The document entry.
Remove an entry from the index.
The document entry.
Replace an entry in the index with an updated one.
The document entry.
Add a leaf node to the word tree index.
The document or compendium index entry to add.
Additional information for indexing.
Aggregate the compendium index and add it to the word tree index.
The compendium pack.
Add all of a parent document's embedded documents to the index.
The parent document.
Aggregate all documents and embedded documents in a world collection and add them to the index.
The name of the documents to index.
While we are indexing, we store a Promise that resolves when the indexing is complete.
This class is responsible for indexing all documents available in the world and storing them in a word tree structure that allows for fast searching.