DVSearchTuning class
Ranking configuration: synonyms, typo tolerance and highlight markers.
The spec configures these in pubspec.yaml, so they arrive as data rather
than as code a provider hard-codes. Keeping the rules here means the local
provider and any hosted adapter that has to post-process agree on what a
match is.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightPost → String
-
final
- highlightPre → String
-
Wrapped around a match by dvHighlight.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
synonyms
→ Map<
String, List< String> > -
Terms that should find each other.
final
- typoTolerance → bool
-
Whether a near-miss counts as a match. See dvTypoMatches for the budget.
final
Methods
-
expand(
String query) → List< String> -
Splits
queryinto terms and adds every synonym of each. -
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