Search
Extended search
Token | Match type | Description |
---|---|---|
jscript | fuzzy-match | Items that fuzzy match jscript |
=scheme | exact-match | Items that are scheme |
'python | include-match | Items that include python |
!ruby | inverse-exact-match | Items that do not include ruby |
^java | prefix-exact-match | Items that start with java |
!^earlang | inverse-prefix-exact-match | Items that do not start with earlang |
.js$ | suffix-exact-match | Items that end with .js |
!.go$ | inverse-suffix-exact-match | Items that do not end with .go |
Scoring Theory
-
source: https://fusejs.io/concepts/scoring-theory.html#scoring-theory
-
scoring composed of
- Fuzziness score
- Key weight
- Field-length norm
-
Whether the score should be included in the result set.
- A score of 0indicates a perfect match, while a score of 1 indicates a complete mismatch.
-
The fuzziness score is internally calculated via a modified implementation of the Bitap algorithm.
-
key weight:
- User inputted weight of the key. The higher the weight, the higher its relevance score. This is optional, athough Fuse.js will internally default it to 1 if one isn't provided. This boosting is applied at query time.