AlgoliaSearchProvider<TModel, TFacets> class
Algolia query endpoint.
Algolia pages are zero-based while Dartvel's contract is one-based, so the page number is translated in both directions.
- Inheritance
-
- Object
- DVHttpSearchProvider<
TModel, TFacets> - AlgoliaSearchProvider
Constructors
-
AlgoliaSearchProvider({required String applicationId, required String apiKey, required String indexName, required TModel fromJson(Map<
String, Object?> hit), List<String> facetFields = const <String>[], DVSearchTuning tuning = const DVSearchTuning(), Uri? baseUrl, DVSearchFacetFilter<TFacets> ? facetFilter, DVHttpSend transport = dvSendHttpRequest})
Properties
- apiKey → String
-
finalinherited
- applicationId → String
-
final
- baseUrl → Uri
-
finalinherited
-
facetFields
→ List<
String> -
Attributes to return counts for.
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