Skip to content

Commit 0b7d36e

Browse files
committed
Add retry
1 parent bb8b91d commit 0b7d36e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from your JavaScript code on web browsers or with Node.js.
77
## Quick Start
88
The 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
```
1212
To 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")
9298
client.setFuzzyMatch(false);
9399
```
94100

0 commit comments

Comments
 (0)