Add a document by enumerating positions for each token.
Document id to add.
Field name the tokens are indexed under.
Token list for the document.
Nothing.
Add exact token positions for a document.
Token value to store positions for.
Field name the token was indexed under.
Document id containing the token.
Token positions within the document.
Nothing.
Load exact positions for a token in a document.
Token value to retrieve positions for.
Field name the token was indexed under.
Document id containing the token.
Positions array or undefined if not found.
Check if a document contains an exact phrase.
Document id to verify.
Field name the tokens are indexed under.
Token sequence representing the phrase.
True when the phrase exists in the document.
Remove exact token positions for a document.
Token value to remove positions for.
Field name the token was indexed under.
Document id containing the token.
Nothing.
Verify candidate documents against a phrase, with optional paging.
Token sequence representing the phrase.
Field name the tokens are indexed under.
Candidate document ids to verify.
Paging options for verification.
Verified results and optional next cursor.
In-memory exact index for token positions and phrase checks.