File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 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.
77## Quick Start
88The library is available on the global CDN [ jsDelivr:] ( https://www.jsdelivr.com/ )
99``` 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 >
1111```
1212To install the library locally or to use it with Node.js:
1313``` sh
@@ -86,9 +86,15 @@ client.setAutocompleteSize(20);
8686```
8787
8888#### 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+
8995``` js
9096// Control fuzzy matching used for typo-tolerance
91- // Possible values true/false/"auto" (default: "auto")
97+ // Possible values true/false/"auto"/"retry" (default: "auto")
9298client .setFuzzyMatch (false );
9399```
94100
You can’t perform that action at this time.
0 commit comments