SearchResult class

Search Result

This is needed to prevent typing error in Search result with Typesense

This is directly the search result from typesense, get the resulting docs in hits. (Using SearchResultDoc Model)

Constructors

SearchResult({required List? facetCounts, required int? found, required List<SearchResultHit> hits, required int? outOf, required int? page, required Map? requestParams, required bool? searchCutoff, required int? searchTimeMs})
SearchResult.fromJson(Map json)
factory

Properties

facetCounts List?
facet_counts
final
found int?
final
getDocs List<SearchResultDoc>
no setter
hashCode int
The hash code for this object.
no setterinherited
hits List<SearchResultHit>
final
outOf int?
out_of
final
page int?
final
requestParams Map?
request_params
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchCutoff bool?
search_cutoff
final
searchTimeMs int?
search_time_ms
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.
inherited