TrendingItemsQuery class final

Annotations
  • @JsonSerializable()

Constructors

TrendingItemsQuery({required String indexName, required double threshold, int? maxRecommendations, SearchParams? queryParameters, required String facetName, required String facetValue, required TrendingItemsModel model, SearchParamsObject? fallbackParameters})
Returns a new TrendingItemsQuery instance.
const
TrendingItemsQuery.fromJson(Map<String, dynamic> json)
factory

Properties

facetName String
Facet attribute. To be used in combination with facetValue. If specified, only recommendations matching the facet filter will be returned.
final
facetValue String
Facet value. To be used in combination with facetName. If specified, only recommendations matching the facet filter will be returned.
final
fallbackParameters SearchParamsObject?
final
hashCode int
The hash code for this object.
no setteroverride
indexName String
Index name (case-sensitive).
final
maxRecommendations int?
Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
final
model TrendingItemsModel
final
queryParameters SearchParams?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threshold double
Minimum score a recommendation must have to be included in the response.
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