Class: TermPosition

nanosearch~TermPosition(term, position) → {this}

A term position. Essentially a struct, this takes a term (word) & a position within a document.

Constructor

new TermPosition(term, position) → {this}

Creates a new term position.
Parameters:
Name Type Description
term string The term/word to store.
position int The position within the document.
Source:
Returns:
Type
this