QueryTerm class

Extends a Token, representing a term in a free text query phrase:

  • term is the term that will be looked up in the index;
  • termPosition is the zero-based position of the term in an ordered list of all the terms in the source text; and
  • modifier is the modifier used for this term.

Constructors

QueryTerm(String term, QueryTermModifier modifier, int termPosition, [int index = 0, double position = 0.0])
Instantiates a const QueryTerm instance:
const

Properties

field → FieldName?
The name of the field in the document that the term is in.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
modifier → QueryTermModifier
The modifier used for this term.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
term → Term
The term that will be looked up in the index. The term is extracted from the query phrase by TextAnalyzer and may not match the String in the phrase exactly.
finalinherited
termPosition int
The zero-based position of the term in an ordered list of all the terms in the source text.
finalinherited

Methods

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

Operators

operator ==(Object other) bool
Compares whether:
inherited