MeilisearchProvider<TModel, TFacets> class

Meilisearch search endpoint. Paging is 1-based, matching Dartvel.

Inheritance

Constructors

MeilisearchProvider({required Uri baseUrl, required String apiKey, required String indexName, required TModel fromJson(Map<String, Object?> hit), DVSearchFacetFilter<TFacets>? facetFilter, DVHttpSend transport = dvSendHttpRequest, List<String> facetFields = const <String>[], DVSearchTuning tuning = const DVSearchTuning()})
const

Properties

apiKey → String
finalinherited
baseUrl → Uri
finalinherited
facetFields → List<String>
Fields to return counts for. Meilisearch returns counts only for fields the query names and the index lists as filterable.
final
facetFilter → DVSearchFacetFilter<TFacets>?
finalinherited
fromJson → TModel Function(Map<String, Object?> hit)
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
indexName → String
finalinherited
providerName → String
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transport → DVHttpSend
finalinherited
tuning → DVSearchTuning
Supplies the highlight markers; the engine does the matching.
final

Methods

buildRequest(String query, List<String> filters, int page, int perPage) → DVHttpRequest
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String query, {TFacets? facets, int page = 1, int perPage = 20}) → Future<DVSearchResultPage<TModel>>
inherited
readHits(Map<String, Object?> payload, String key) → List<TModel>
inherited
readResponse(Map<String, Object?> payload, int page, int perPage) → DVSearchResultPage<TModel>
override
toString() → String
A string representation of this object.
inherited

Operators

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