RankingInfo class final

Annotations
  • @JsonSerializable()

Constructors

RankingInfo({required int filters, required int firstMatchedWord, required int geoDistance, int? geoPrecision, MatchedGeoLocation? matchedGeoLocation, Personalization? personalization, required int nbExactWords, required int nbTypos, required bool promoted, int? proximityDistance, required int userScore, required int words, bool? promotedByReRanking})
Returns a new RankingInfo instance.
const
RankingInfo.fromJson(Map<String, dynamic> json)
factory

Properties

filters int
This field is reserved for advanced usage.
final
firstMatchedWord int
Position of the most important matched attribute in the attributes to index list.
final
geoDistance int
Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters).
final
geoPrecision int?
Precision used when computing the geo distance, in meters.
final
hashCode int
The hash code for this object.
no setteroverride
matchedGeoLocation MatchedGeoLocation?
final
nbExactWords int
Number of exactly matched words.
final
nbTypos int
Number of typos encountered when matching the record.
final
personalization Personalization?
final
Present and set to true if a Rule promoted the hit.
final
promotedByReRanking bool?
Wether the record are promoted by the re-ranking strategy.
final
proximityDistance int?
When the query contains more than one word, the sum of the distances between matched words (in meters).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userScore int
Custom ranking for the object, expressed as a single integer value.
final
words int
Number of matched words, including prefixes and typos.
final

Methods

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

Operators

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