File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ from your JavaScript code on web browsers or with Node.js.
7
7
## Quick Start
8
8
The library is available on the global CDN [ jsDelivr:] ( https://www.jsdelivr.com/ )
9
9
``` html
10
- <script src =" https://cdn.jsdelivr.net/npm/addsearch-js-client@0.3 /dist/addsearch-js-client.min.js" ></script >
10
+ <script src =" https://cdn.jsdelivr.net/npm/addsearch-js-client@0.4 /dist/addsearch-js-client.min.js" ></script >
11
11
```
12
12
To install the library locally or to use it with Node.js:
13
13
``` sh
@@ -86,9 +86,15 @@ client.setAutocompleteSize(20);
86
86
```
87
87
88
88
#### Search with fuzzy matching
89
+ Fuzzy matching is used for typo tolerance. There are four options:
90
+ - ** false** : No typo tolerance
91
+ - ** true** : Exact matches and fuzzy matches are equal
92
+ - ** "auto"** : Exact matches first, followed by fuzzy matches
93
+ - ** "retry"** : Show exact matches only. If none were found, show fuzzy matches
94
+
89
95
``` js
90
96
// Control fuzzy matching used for typo-tolerance
91
- // Possible values true/false/"auto" (default: "auto")
97
+ // Possible values true/false/"auto"/"retry" (default: "auto")
92
98
client .setFuzzyMatch (false );
93
99
```
94
100
You can’t perform that action at this time.
0 commit comments