DVInMemorySearchProvider<TModel, TFacets> class

A concrete local search provider for development, tests, and small apps.

Applications should replace this provider with a database or hosted search adapter when their dataset does not fit in memory.

Implemented types

Constructors

DVInMemorySearchProvider({required List<TModel> records, required DVSearchDocument<TModel> document, DVSearchFacetMatcher<TModel, TFacets>? facetMatcher, Map<String, String Function(TModel)>? facetValues, DVSearchTuning tuning = const DVSearchTuning()})

Properties

document → DVSearchDocument<TModel>
final
facetMatcher → DVSearchFacetMatcher<TModel, TFacets>?
final
facetValues → Map<String, String Function(TModel)>
Facet name to the value a record carries for it, used for counts.
final
hashCode → int
The hash code for this object.
no setterinherited
records → List<TModel>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tuning → DVSearchTuning
Synonyms, typo tolerance and highlight markers.
final

Methods

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>>
override
toString() → String
A string representation of this object.
inherited

Operators

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