\FinderIndexerToken
Token class for the Finder indexer package.
Synopsis
class FinderIndexerToken
{
- // members
- public $term;
- public $stem;
- public $numeric;
- public $common;
- public $phrase;
- public $length;
- public $weight;
- public $language;
- // methods
- public void __construct()
Members
public
- $common
—
boolean
If the token is a common term, the weight is adjusted to compensate for the higher frequency of the term in relation to other terms. - $language
—
string
The simple language identifier for the token. - $length
—
integer
The length is used to calculate the weight of the token. - $numeric
—
boolean
If the token is numeric, it is likely to be short and uncommon so the weight is adjusted to compensate for that situation. - $phrase
—
boolean
Flag for phrase tokens. - $stem
—
string
The stem is used to match the root term and produce more potential matches when searching the index. - $term
—
string
This is the term that will be referenced in the terms table and the mapping tables. - $weight
—
integer
The weight is calculated based on token size and whether the token is considered a common term.