DocumentScoringStateBase class

Default implementation of DocumentScoringState.

Features:

  • AndFilter returns 1.0 if all filter match.
  • OrFilter returns 1.0 if any filter matches.
  • GeoPoint returns 1.0 if any GeoPoint in the document is within the specified geographical radius.
  • KeywordFilter returns 1.0 if any string in the document contains the keyword.
Inheritance
Implemented types
Implementers

Constructors

DocumentScoringStateBase(Filter filter)

Properties

filter Filter
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

evaluateSnapshot(Snapshot snapshot) double
Returns a positive number if the document snapshot matches the filter. Otherwise returns 0.0.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
visitAndFilter(AndFilter filter, Object input) double
override
visitGeoPointFilter(GeoPointFilter filter, Object input) double
override
visitKeywordFilter(KeywordFilter filter, Object input) double
override
visitListFilter(ListFilter filter, Object context) double
override
visitMapFilter(MapFilter filter, Object input) double
override
visitNotFilter(NotFilter filter, Object input) double
override
visitOrFilter(OrFilter filter, Object input) double
override
visitRangeFilter(RangeFilter filter, Object input) double
override
visitRegExpFilter(RegExpFilter filter, Object input) double
override
visitSqlFilter(SqlFilter filter, Object context) double
override
visitValueFilter(ValueFilter filter, Object context) double
override

Operators

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