Private
#readyWhile we are indexing, we store a Promise that resolves when the indexing is complete.
Returns a Promise that resolves when the indexing process is complete.
Return entries that match the given string prefix.
The prefix.
Optional
options: { Additional options to configure behaviour.
Optionally provide an array of document types. Only entries of that type will be searched for.
The maximum number of items per document type to retrieve. It is important to set this value as very short prefixes will naturally match large numbers of entries.
A filter function to apply to each candidate entry.
Only return entries that the user meets this ownership level for.
A number of entries that have the given prefix, grouped by document type.
Protected
_addProtected
Add a leaf node to the word tree index.
The document or compendium index entry to add.
Optional
options: { Additional information for indexing.
The compendium that the index belongs to.
Protected
_indexProtected
Aggregate the compendium index and add it to the word tree index.
The compendium pack.
Protected
_indexProtected
_indexStatic
Private
#filter
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.