Searcheable<T> class abstract

Represents a search result.

Can be one of:

Implementers
Available extensions

Constructors

Searcheable({required Map<String, dynamic> src, required String indexUid, required String? query, required List<T> hits, required Map<String, Map<String, int>>? facetDistribution, required int? processingTimeMs, required Map<String, FacetStat>? facetStats, required List? vector})
const

Properties

facetDistribution Map<String, Map<String, int>>?
Distribution of the given facets
final
facetStats Map<String, FacetStat>?
Distribution of the given facets
final
hashCode int
The hash code for this object.
no setterinherited
hits List<T>
Results of the query
final
indexUid String
final
processingTimeMs int?
Processing time of the query
final
query String?
Query originating the response
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
src Map<String, dynamic>
final
vector List?
final

Methods

asPaginatedResult() PaginatedSearchResult<T>
asSearchResult() SearchResult<T>
map<TOther>(MeilisearchDocumentMapper<T, TOther> mapper) Searcheable<TOther>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

createSearchResult(Map<String, Object?> map, {String? indexUid}) Searcheable<Map<String, dynamic>>