TsWordPos class

A position normally indicates the source word's location in the document. Positional information can be used for proximity ranking. Position values can range from 1 to 16383; larger numbers are silently set to 16383. Duplicate positions for the same lexeme are discarded.

Lexemes that have positions can further be labeled with a weight, which can be A, B, C, or D. D is the default.

Constructors

TsWordPos(int position, {TsWeight weight = TsWeight.d})

Properties

hashCode int
The hash code for this object.
no setterinherited
position int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weight TsWeight
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited