LookingSimilarQuery class final

Annotations
  • @JsonSerializable()

Constructors

LookingSimilarQuery({required String indexName, required double threshold, int? maxRecommendations, SearchParams? queryParameters, required LookingSimilarModel model, required String objectID, FallbackParams? fallbackParameters})
Returns a new LookingSimilarQuery instance.
const
LookingSimilarQuery.fromJson(Map<String, dynamic> json)
factory

Properties

fallbackParameters FallbackParams?
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 LookingSimilarModel
final
objectID String
Unique record identifier.
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